rnd-20001128-1-src
[rocksndiamonds.git] / src / 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 #if defined(MSDOS)
18 #define PLATFORM_MSDOS
19 #elif defined(WIN32)
20 #define PLATFORM_WIN32
21 #else
22 #define PLATFORM_UNIX
23 #endif
24
25 /* define additional keywords for several Unix platforms */
26
27 #if defined(__FreeBSD__)
28 #define PLATFORM_FREEBSD
29 #endif
30
31 /* detecting HP-UX by the following compiler keyword definitions:
32    - in K&R mode (the default), the HP C compiler defines "hpux"
33    - in ANSI mode (-Aa or -Ae), the HP C compiler defines "__hpux"
34    - the gcc (Gnu) C compiler defines "__hpux__"
35    Thanks to Jarkko Hietaniemi  for this note. */
36
37 #if defined(__hpux__) || defined(__hpux) || defined(hpux)
38 #define PLATFORM_HPUX
39 #endif
40
41 #endif /* PLATFORM_H */