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 keywords for supported main platforms (Unix, DOS and Windows) */
19 /* ========================================================================= */
22 #define PLATFORM_MSDOS
23 #define PLATFORM_STRING "DOS"
25 #define PLATFORM_WIN32
26 #define PLATFORM_STRING "Windows"
29 #define PLATFORM_STRING "Unix"
33 /* ========================================================================= */
34 /* define additional keywords for MS-DOS platform */
35 /* ========================================================================= */
37 #if defined(PLATFORM_MSDOS)
39 #ifndef TARGET_ALLEGRO
40 #define TARGET_ALLEGRO
50 /* ========================================================================= */
51 /* define additional keywords for several Unix platforms */
52 /* ========================================================================= */
54 #if defined(PLATFORM_UNIX) && defined(TARGET_X11)
55 #define TARGET_X11_NATIVE
59 #define PLATFORM_LINUX
60 #undef PLATFORM_STRING
61 #define PLATFORM_STRING "Linux"
64 #if defined(__FreeBSD__)
65 #define PLATFORM_FREEBSD
67 #undef PLATFORM_STRING
68 #define PLATFORM_STRING "FreeBSD"
71 #if defined(__NetBSD__)
72 #define PLATFORM_NETBSD
74 #undef PLATFORM_STRING
75 #define PLATFORM_STRING "NetBSD"
81 #undef PLATFORM_STRING
82 #define PLATFORM_STRING "BSDI"
85 #if defined(sparc) && defined(sun)
86 #define PLATFORM_SUNOS
87 #undef PLATFORM_STRING
88 #define PLATFORM_STRING "Solaris"
91 #if defined(__APPLE__) && defined(__MACH__)
92 #define PLATFORM_MACOSX
93 #undef PLATFORM_STRING
94 #define PLATFORM_STRING "Mac OS X"
99 #undef PLATFORM_STRING
100 #define PLATFORM_STRING "NeXT"
103 /* detecting HP-UX by the following compiler keyword definitions:
104 - in K&R mode (the default), the HP C compiler defines "hpux"
105 - in ANSI mode (-Aa or -Ae), the HP C compiler defines "__hpux"
106 - the gcc (Gnu) C compiler defines "__hpux__"
107 Thanks to Jarkko Hietaniemi for this note. */
109 #if defined(__hpux__) || defined(__hpux) || defined(hpux)
110 #define PLATFORM_HPUX
111 #undef PLATFORM_STRING
112 #define PLATFORM_STRING "HP-UX"
116 /* ========================================================================= */
117 /* this should better go into "system.h" or "features.h" (yet to be created) */
118 /* ========================================================================= */
120 #if defined(PLATFORM_UNIX) || defined(TARGET_SDL)
121 #define NETWORK_AVALIABLE
124 #endif /* PLATFORM_H */