Tuesday, 24 July 2007

Compiling C on Mac OS X

The preprocessor defines for the Apple Mac plaform can be found here: http://predef.sourceforge.net/preos.html#sec17

Use it like this:
#ifdef __APPLE__ & __MACH__
#define lseek64 lseek
#define open64 open
#endif

No comments: