X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=8b13dc97080e29b993c461447e432a8440e55b6e;hb=3cc2ee99e57014c6962d26365e92bd3eac36a492;hp=d5d939a6d1c75d70933ea208ff159927394293a7;hpb=3ae70b9d27b4b2c038f35b0aa5985c368542a486;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index d5d939a6..8b13dc97 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -1,27 +1,22 @@ -/*********************************************************** -* Artsoft Retro-Game Library * -*----------------------------------------------------------* -* (c) 1994-2006 Artsoft Entertainment * -* Holger Schemel * -* Detmolder Strasse 189 * -* 33604 Bielefeld * -* Germany * -* e-mail: info@artsoft.org * -*----------------------------------------------------------* -* platform.h * -***********************************************************/ +// ============================================================================ +// Artsoft Retro-Game Library +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// platform.h +// ============================================================================ #ifndef PLATFORM_H #define PLATFORM_H -/* ========================================================================= */ -/* define main platform keywords */ -/* ========================================================================= */ +// ============================================================================ +// define main platform keywords +// ============================================================================ -#if defined(MSDOS) -#define PLATFORM_MSDOS -#define PLATFORM_STRING "DOS" -#elif defined(WIN32) || defined(_WIN32) +#if defined(WIN32) || defined(_WIN32) #define PLATFORM_WIN32 #define PLATFORM_STRING "Windows" #else @@ -30,9 +25,9 @@ #endif -/* ========================================================================= */ -/* define additional platform keywords */ -/* ========================================================================= */ +// ============================================================================ +// define additional platform keywords +// ============================================================================ #if defined(_AIX) #define PLATFORM_AIX @@ -152,23 +147,16 @@ #define PLATFORM_STRING "Windows CE" #endif - -/* ========================================================================= */ -/* define additional target keywords */ -/* ========================================================================= */ - -#if defined(PLATFORM_MSDOS) -#ifndef TARGET_ALLEGRO -#define TARGET_ALLEGRO -#endif -#ifndef TARGET_X11 -#define TARGET_X11 -#endif +#if defined(__ANDROID__) +#define PLATFORM_ANDROID +#undef PLATFORM_STRING +#define PLATFORM_STRING "Android" #endif -#if defined(PLATFORM_UNIX) && defined(TARGET_X11) -#define TARGET_X11_NATIVE -#endif + +// ============================================================================ +// define additional target keywords +// ============================================================================ #if defined(TARGET_SDL2) #ifndef TARGET_SDL @@ -177,12 +165,4 @@ #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 */ +#endif // PLATFORM_H