1 /***********************************************************
2 * Artsoft Retro-Game Library *
3 *----------------------------------------------------------*
4 * (c) 1994-2006 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
17 /* ========================================================================= */
18 /* define main platform keywords */
19 /* ========================================================================= */
21 #if defined(WIN32) || defined(_WIN32)
22 #define PLATFORM_WIN32
23 #define PLATFORM_STRING "Windows"
26 #define PLATFORM_STRING "Unix"
30 /* ========================================================================= */
31 /* define additional platform keywords */
32 /* ========================================================================= */
36 #undef PLATFORM_STRING
37 #define PLATFORM_STRING "AIX"
40 #if defined(AMIGA) || defined(__AMIGA) || defined(__amigados__)
41 #define PLATFORM_AMIGA
42 #undef PLATFORM_STRING
43 #define PLATFORM_STRING "AmigaOS"
48 #undef PLATFORM_STRING
49 #define PLATFORM_STRING "BeOS"
52 #if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
55 #undef PLATFORM_STRING
56 #define PLATFORM_STRING "BSDI"
59 #if defined(_arch_dreamcast)
60 #define PLATFORM_DREAMCAST
61 #undef PLATFORM_STRING
62 #define PLATFORM_STRING "Dreamcast"
65 #if defined(__FreeBSD__) || defined(__DragonFly__)
66 #define PLATFORM_FREEBSD
68 #undef PLATFORM_STRING
69 #define PLATFORM_STRING "FreeBSD"
72 #if defined(hpux) || defined(__hpux) || defined(__hpux__)
74 #undef PLATFORM_STRING
75 #define PLATFORM_STRING "HP-UX"
78 #if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
80 #undef PLATFORM_STRING
81 #define PLATFORM_STRING "IRIX"
84 #if defined(linux) || defined(__linux) || defined(__linux__)
85 #define PLATFORM_LINUX
86 #undef PLATFORM_STRING
87 #define PLATFORM_STRING "Linux"
90 #if defined(__APPLE__) && defined(__MACH__)
91 #define PLATFORM_MACOSX
92 #undef PLATFORM_STRING
93 #define PLATFORM_STRING "Mac OS X"
96 #if defined(__NetBSD__)
97 #define PLATFORM_NETBSD
99 #undef PLATFORM_STRING
100 #define PLATFORM_STRING "NetBSD"
104 #define PLATFORM_NEXT
105 #undef PLATFORM_STRING
106 #define PLATFORM_STRING "NeXT"
109 #if defined(__OpenBSD__)
110 #define PLATFORM_OPENBSD
112 #undef PLATFORM_STRING
113 #define PLATFORM_STRING "OpenBSD"
118 #undef PLATFORM_STRING
119 #define PLATFORM_STRING "OS/2"
122 #if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
124 #undef PLATFORM_STRING
125 #define PLATFORM_STRING "OSF/1"
128 #if defined(__QNXNTO__)
130 #undef PLATFORM_STRING
131 #define PLATFORM_STRING "QNX"
134 #if defined(riscos) || defined(__riscos) || defined(__riscos__)
135 #define PLATFORM_RISCOS
136 #undef PLATFORM_STRING
137 #define PLATFORM_STRING "RISC OS"
140 #if defined(sparc) || defined(sun) || defined(__SVR4)
141 #define PLATFORM_SOLARIS
142 #undef PLATFORM_STRING
143 #define PLATFORM_STRING "Solaris"
146 #if defined(_WIN32_WCE)
147 #define PLATFORM_WINDOWS_CE
148 #undef PLATFORM_STRING
149 #define PLATFORM_STRING "Windows CE"
152 #if defined(__ANDROID__)
153 #define PLATFORM_ANDROID
154 #undef PLATFORM_STRING
155 #define PLATFORM_STRING "Android"
159 /* ========================================================================= */
160 /* define additional target keywords */
161 /* ========================================================================= */
163 #if defined(TARGET_SDL2)
170 /* ========================================================================= */
171 /* this should better go into "system.h" or "features.h" (yet to be created) */
172 /* ========================================================================= */
174 #if defined(PLATFORM_UNIX) || defined(TARGET_SDL)
175 #define NETWORK_AVALIABLE
178 #endif /* PLATFORM_H */