6560
|
1 |
/*
|
|
2 |
SDL - Simple DirectMedia Layer
|
|
3 |
Copyright (C) 1997-2009 Sam Lantinga
|
|
4 |
|
|
5 |
This library is free software; you can redistribute it and/or
|
|
6 |
modify it under the terms of the GNU Lesser General Public
|
|
7 |
License as published by the Free Software Foundation; either
|
|
8 |
version 2.1 of the License, or (at your option) any later version.
|
|
9 |
|
|
10 |
This library is distributed in the hope that it will be useful,
|
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 |
Lesser General Public License for more details.
|
|
14 |
|
|
15 |
You should have received a copy of the GNU Lesser General Public
|
|
16 |
License along with this library; if not, write to the Free Software
|
|
17 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
|
|
19 |
Sam Lantinga
|
|
20 |
slouken@libsdl.org
|
|
21 |
*/
|
|
22 |
|
|
23 |
/** @file SDL_platform.h
|
|
24 |
* Try to get a standard set of platform defines
|
|
25 |
*/
|
|
26 |
|
|
27 |
#ifndef _SDL_platform_h
|
|
28 |
#define _SDL_platform_h
|
|
29 |
|
|
30 |
#if defined(_AIX)
|
|
31 |
#undef __AIX__
|
|
32 |
#define __AIX__ 1
|
|
33 |
#endif
|
|
34 |
#if defined(__BEOS__)
|
|
35 |
#undef __BEOS__
|
|
36 |
#define __BEOS__ 1
|
|
37 |
#endif
|
|
38 |
#if defined(__HAIKU__)
|
|
39 |
#undef __HAIKU__
|
|
40 |
#define __HAIKU__ 1
|
|
41 |
#endif
|
|
42 |
#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
|
|
43 |
#undef __BSDI__
|
|
44 |
#define __BSDI__ 1
|
|
45 |
#endif
|
|
46 |
#if defined(_arch_dreamcast)
|
|
47 |
#undef __DREAMCAST__
|
|
48 |
#define __DREAMCAST__ 1
|
|
49 |
#endif
|
|
50 |
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
|
|
51 |
#undef __FREEBSD__
|
|
52 |
#define __FREEBSD__ 1
|
|
53 |
#endif
|
|
54 |
#if defined(__HAIKU__)
|
|
55 |
#undef __HAIKU__
|
|
56 |
#define __HAIKU__ 1
|
|
57 |
#endif
|
|
58 |
#if defined(hpux) || defined(__hpux) || defined(__hpux__)
|
|
59 |
#undef __HPUX__
|
|
60 |
#define __HPUX__ 1
|
|
61 |
#endif
|
|
62 |
#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
|
|
63 |
#undef __IRIX__
|
|
64 |
#define __IRIX__ 1
|
|
65 |
#endif
|
|
66 |
#if defined(linux) || defined(__linux) || defined(__linux__)
|
|
67 |
#undef __LINUX__
|
|
68 |
#define __LINUX__ 1
|
|
69 |
#endif
|
|
70 |
#if defined(__APPLE__)
|
|
71 |
#undef __MACOSX__
|
|
72 |
#define __MACOSX__ 1
|
|
73 |
#elif defined(macintosh)
|
|
74 |
#undef __MACOS__
|
|
75 |
#define __MACOS__ 1
|
|
76 |
#endif
|
|
77 |
#if defined(__NetBSD__)
|
|
78 |
#undef __NETBSD__
|
|
79 |
#define __NETBSD__ 1
|
|
80 |
#endif
|
|
81 |
#if defined(__OpenBSD__)
|
|
82 |
#undef __OPENBSD__
|
|
83 |
#define __OPENBSD__ 1
|
|
84 |
#endif
|
|
85 |
#if defined(__OS2__)
|
|
86 |
#undef __OS2__
|
|
87 |
#define __OS2__ 1
|
|
88 |
#endif
|
|
89 |
#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
|
|
90 |
#undef __OSF__
|
|
91 |
#define __OSF__ 1
|
|
92 |
#endif
|
|
93 |
#if defined(__QNXNTO__)
|
|
94 |
#undef __QNXNTO__
|
|
95 |
#define __QNXNTO__ 1
|
|
96 |
#endif
|
|
97 |
#if defined(riscos) || defined(__riscos) || defined(__riscos__)
|
|
98 |
#undef __RISCOS__
|
|
99 |
#define __RISCOS__ 1
|
|
100 |
#endif
|
|
101 |
#if defined(__SVR4)
|
|
102 |
#undef __SOLARIS__
|
|
103 |
#define __SOLARIS__ 1
|
|
104 |
#endif
|
|
105 |
#if defined(WIN32) || defined(_WIN32)
|
|
106 |
#undef __WIN32__
|
|
107 |
#define __WIN32__ 1
|
|
108 |
#endif
|
|
109 |
|
|
110 |
#endif /* _SDL_platform_h */
|