rnd-20001201-1-src
[rocksndiamonds.git] / src / libgame / platform.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  (c) 1995-98 Artsoft Entertainment                       *
5 *              Holger Schemel                              *
6 *              Oststrasse 11a                              *
7 *              33604 Bielefeld                             *
8 *              phone: ++49 +521 290471                     *
9 *              email: aeglos@valinor.owl.de                *
10 *----------------------------------------------------------*
11 *  platform.h                                              *
12 ***********************************************************/
13
14 #ifndef PLATFORM_H
15 #define PLATFORM_H
16
17 /* define keywords for supported main platforms */
18
19 #if defined(MSDOS)
20 #define PLATFORM_MSDOS
21 #elif defined(WIN32)
22 #define PLATFORM_WIN32
23 #else
24 #define PLATFORM_UNIX
25 #endif
26
27 /* define additional keywords for several Unix platforms */
28
29 #if defined(linux)
30 #define PLATFORM_LINUX
31 #endif
32
33 #if defined(__FreeBSD__)
34 #define PLATFORM_FREEBSD
35 #endif
36
37 /* detecting HP-UX by the following compiler keyword definitions:
38    - in K&R mode (the default), the HP C compiler defines "hpux"
39    - in ANSI mode (-Aa or -Ae), the HP C compiler defines "__hpux"
40    - the gcc (Gnu) C compiler defines "__hpux__"
41    Thanks to Jarkko Hietaniemi  for this note. */
42
43 #if defined(__hpux__) || defined(__hpux) || defined(hpux)
44 #define PLATFORM_HPUX
45 #endif
46
47 #endif /* PLATFORM_H */