X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=baabd7e102080c53bae2efeb6eb7f610bd205bce;hb=002c075b9935dc5dc055d3a8f35b2774796fa1c4;hp=02513071f7988999d00ddbf1046dd5a4810a566a;hpb=da14f69fd95c7bd5a0d70cdf4935af06f1f20a04;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 02513071..baabd7e1 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -1,20 +1,22 @@ /*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * +* Artsoft Retro-Game Library * *----------------------------------------------------------* -* (c) 1995-98 Artsoft Entertainment * -* Holger Schemel * -* Oststrasse 11a * -* 33604 Bielefeld * -* phone: ++49 +521 290471 * -* email: aeglos@valinor.owl.de * +* (c) 1994-2002 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * *----------------------------------------------------------* -* platform.h * +* platform.h * ***********************************************************/ #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,7 +26,31 @@ #define PLATFORM_UNIX #endif -/* define additional keywords for several Unix platforms */ + +/* ========================================================================= */ +/* define additional keywords for MS-DOS platform */ +/* ========================================================================= */ + +#if defined(PLATFORM_MSDOS) + +#ifndef TARGET_ALLEGRO +#define TARGET_ALLEGRO +#endif + +#ifndef TARGET_X11 +#define TARGET_X11 +#endif + +#endif + + +/* ========================================================================= */ +/* define additional keywords for several Unix platforms */ +/* ========================================================================= */ + +#if defined(PLATFORM_UNIX) && defined(TARGET_X11) +#define TARGET_X11_NATIVE +#endif #if defined(linux) #define PLATFORM_LINUX @@ -32,6 +58,29 @@ #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) +#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: @@ -44,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 */