Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added macros to detect if you are compiling for iPhone OS vs Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holmes Futrell committed Jul 18, 2008
1 parent 165eb2f commit 3ee5dcd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions include/SDL_platform.h
Expand Up @@ -57,13 +57,19 @@
#undef __LINUX__
#define __LINUX__ 1
#endif

#if defined(__APPLE__)
#include "targetconditionals.h" /* Mac OS X 10.3 and later */
#if TARGET_OS_IPHONE
#undef __IPHONEOS__
#define __IPHONEOS__ 1
#undef __MACOSX__
#else
#undef __MACOSX__
#define __MACOSX__ 1
#elif defined(macintosh)
#undef __MACOS__
#define __MACOS__ 1
#endif
#endif /* TARGET_OS_IPHONE */
#endif /* defined(__APPLE__) */

#if defined(__NetBSD__)
#undef __NETBSD__
#define __NETBSD__ 1
Expand Down

0 comments on commit 3ee5dcd

Please sign in to comment.