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

Commit

Permalink
Added macro so that targetconditionals.h isn't included when compilin…
Browse files Browse the repository at this point in the history
…g from versions of Mac OS X earlier than 10.3 (the header file doesn't exist there). Instead, it is just assumed that you want to compile for Mac OS X rather than iPhone ... a fine assumption since you need 10.5 to compile for iPhone.
  • Loading branch information
Holmes Futrell committed Aug 15, 2008
1 parent 41536c8 commit 3a1f98f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/SDL_platform.h
Expand Up @@ -59,15 +59,26 @@
#endif

#if defined(__APPLE__)
#include "targetconditionals.h" /* Mac OS X 10.3 and later */
/* lets us know what version of Mac OS X we're compiling on */
#include "AvailabilityMacros.h"
#ifdef MAC_OS_X_VERSION_10_3
#include "targetconditionals.h" /* this header is in 10.3 or later */
#if TARGET_OS_IPHONE
/* if compiling for iPhone */
#undef __IPHONEOS__
#define __IPHONEOS__ 1
#undef __MACOSX__
#else
/* if not compiling for iPhone */
#undef __MACOSX__
#define __MACOSX__ 1
#endif /* TARGET_OS_IPHONE */
#else
/* if earlier verion of Mac OS X than version 10.3 */
#undef __MACOSX__
#define __MACOSX__ 1
#endif

#endif /* defined(__APPLE__) */

#if defined(__NetBSD__)
Expand Down

0 comments on commit 3a1f98f

Please sign in to comment.