X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=352e3562ebf33c0214388eb4f6cc317040af0d80;hb=7ff43d7ba40390c41b10888aad0a35dfe3cad82a;hp=0bdfc4841eab27c310c9708f59b057165c84a6ab;hpb=ff56a43aa3799aa3357f4deca4d6482fc25a6a41;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 0bdfc484..352e3562 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -1,7 +1,7 @@ /*********************************************************** * Artsoft Retro-Game Library * *----------------------------------------------------------* -* (c) 1994-2000 Artsoft Entertainment * +* (c) 1994-2001 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -24,7 +24,29 @@ #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 @@ -34,6 +56,10 @@ #define PLATFORM_FREEBSD #endif +#if defined(__NetBSD__) +#define PLATFORM_NETBSD +#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"