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

Commit

Permalink
Added iPhone OS (__IPHONEOS__) as a platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Holmes Futrell committed Jun 22, 2008
1 parent 6cf3ba5 commit c96fa55
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions include/SDL_platform.h
Expand Up @@ -57,13 +57,19 @@
#undef __LINUX__
#define __LINUX__ 1
#endif

#if defined(__APPLE__)
#include "targetconditionals.h"
#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

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

0 comments on commit c96fa55

Please sign in to comment.