X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=baabd7e102080c53bae2efeb6eb7f610bd205bce;hb=8a7afb2e699aa06f01070fce0c446545e2efc0a3;hp=61ab27f6a59d9b365b87b7b85eaceb0621524579;hpb=1e4d3fd0343fa76d5d1e2803b33bb6faa97403d4;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 61ab27f6..baabd7e1 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -26,6 +26,7 @@ #define PLATFORM_UNIX #endif + /* ========================================================================= */ /* define additional keywords for MS-DOS platform */ /* ========================================================================= */ @@ -42,6 +43,7 @@ #endif + /* ========================================================================= */ /* define additional keywords for several Unix platforms */ /* ========================================================================= */ @@ -56,14 +58,17 @@ #if defined(__FreeBSD__) #define PLATFORM_FREEBSD +#define PLATFORM_BSD #endif #if defined(__NetBSD__) #define PLATFORM_NETBSD +#define PLATFORM_BSD #endif #if defined(__bsdi__) #define PLATFORM_BSDI +#define PLATFORM_BSD #endif #if defined(sparc) && defined(sun) @@ -74,6 +79,10 @@ #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" @@ -84,4 +93,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 */