comparison include/SDL_platform.h @ 1628:10b4827452a8

Fixed bug #185 The SDL platform header shouldn't dictate the OS target API for other applications. The build system should define the target API for building SDL internally.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Apr 2006 14:14:06 +0000
parents 57431b199aed
children 510b009a864c
comparison
equal deleted inserted replaced
1627:aee7ea396f59 1628:10b4827452a8
62 #define __LINUX__ 1 62 #define __LINUX__ 1
63 #endif 63 #endif
64 #if defined(macintosh) 64 #if defined(macintosh)
65 #undef __MACOS__ 65 #undef __MACOS__
66 #define __MACOS__ 1 66 #define __MACOS__ 1
67 #define TARGET_API_MAC_OS8 1
68 #define TARGET_API_MAC_CARBON 0
69 #define TARGET_API_MAC_OSX 0
70 #endif 67 #endif
71 #if defined(__GNUC__) && (defined(__APPLE_CC__) || defined(__APPLE_CPP__)) 68 #if defined(__GNUC__) && (defined(__APPLE_CC__) || defined(__APPLE_CPP__))
72 #undef __MACOSX__ 69 #undef __MACOSX__
73 #define __MACOSX__ 1 70 #define __MACOSX__ 1
74 #define TARGET_API_MAC_OS8 0
75 #define TARGET_API_MAC_CARBON 1
76 #define TARGET_API_MAC_OSX 1
77 #endif 71 #endif
78 #if defined(__NetBSD__) 72 #if defined(__NetBSD__)
79 #undef __NETBSD__ 73 #undef __NETBSD__
80 #define __NETBSD__ 1 74 #define __NETBSD__ 1
81 #endif 75 #endif