byteswap.h

Shantonu Sen ssen at apple.com
Tue Apr 10 14:34:37 PDT 2007


You can create a byteswap.h that includes <libkern/OSByteOrder.h>, and  
implement whatever functions you need either as macros or inline  
functions to call the libkern versions

Shantonu

On Apr 10, 2007, at 3:42 PM, Michael Brian Bentley wrote:

> There's a couple files that occasionally seem to plague GNU/Linux  
> software source that I'd like to find a relatively benign solution  
> for under OS X. The files are byteswap.h and, perhaps, endian.h.
>
> I won't be adding any conditional compiles to the original source  
> I'm trying to build, or modifying the original source to change the  
> include file names, but I have no problem inventing these two files  
> to fulfill the build requirements.
>
> If you know offhand, please let me know, otherwise I'll just be  
> inventive.
>
> Thanks!
>
> -Mike
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev



More information about the MacOSX-dev mailing list