X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=5e1683619d8053a003a5273eabf58e15d2c3a165;hb=98cdb3fce945485772ccc49741fa29051338ce0d;hp=e5851343cd7857d3fda92f1e83e207e1108499fe;hpb=681721dddc91bcdaef50002d1e861cc8d484e938;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index e5851343..5e168361 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -1,7 +1,7 @@ /*********************************************************** * Artsoft Retro-Game Library * *----------------------------------------------------------* -* (c) 1994-2001 Artsoft Entertainment * +* (c) 1994-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -14,7 +14,9 @@ #ifndef PLATFORM_H #define PLATFORM_H -/* define keywords for supported main platforms */ +/* ========================================================================= */ +/* define keywords for supported main platforms (Unix, DOS and Windows) */ +/* ========================================================================= */ #if defined(MSDOS) #define PLATFORM_MSDOS @@ -24,6 +26,7 @@ #define PLATFORM_UNIX #endif + /* ========================================================================= */ /* define additional keywords for MS-DOS platform */ /* ========================================================================= */ @@ -40,6 +43,7 @@ #endif + /* ========================================================================= */ /* define additional keywords for several Unix platforms */ /* ========================================================================= */ @@ -56,6 +60,26 @@ #define PLATFORM_FREEBSD #endif +#if defined(__NetBSD__) +#define PLATFORM_NETBSD +#endif + +#if defined(__bsdi__) +#define PLATFORM_BSDI +#endif + +#if defined(sparc) && defined(sun) +#define PLATFORM_SUNOS +#endif + +#if defined(__APPLE__) && defined(__MACH__) +#define PLATFORM_MACOSX +#endif + +#if defined(NeXT) +#define PLATFORM_NEXT +#endif + /* detecting HP-UX by the following compiler keyword definitions: - in K&R mode (the default), the HP C compiler defines "hpux" - in ANSI mode (-Aa or -Ae), the HP C compiler defines "__hpux" @@ -66,4 +90,14 @@ #define PLATFORM_HPUX #endif + +/* ========================================================================= */ +/* this should better go into "system.h" or "features.h" (yet to be created) */ +/* ========================================================================= */ + +#if defined(PLATFORM_UNIX) || defined(TARGET_SDL) +#define NETWORK_AVALIABLE +#endif + + #endif /* PLATFORM_H */