X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=60ca20f4734cd98960bdd970cf0462dbe2066b33;hp=a908fc7caec0b7077bbdb3f6cff107475f3ea893;hb=b641818c787e48bbf03ce2a0cd5b542c4c21e523;hpb=2e99b0c26d334eb287486b8933b52b5048c6cc0c diff --git a/src/libgame/platform.h b/src/libgame/platform.h index a908fc7c..60ca20f4 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -1,22 +1,20 @@ -/*********************************************************** -* 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 +// https://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// platform.h +// ============================================================================ #ifndef PLATFORM_H #define PLATFORM_H -/* ========================================================================= */ -/* define main platform keywords */ -/* ========================================================================= */ +// ============================================================================ +// define main platform keywords +// ============================================================================ #if defined(WIN32) || defined(_WIN32) #define PLATFORM_WIN32 @@ -27,9 +25,9 @@ #endif -/* ========================================================================= */ -/* define additional platform keywords */ -/* ========================================================================= */ +// ============================================================================ +// define additional platform keywords +// ============================================================================ #if defined(_AIX) #define PLATFORM_AIX @@ -156,9 +154,22 @@ #endif -/* ========================================================================= */ -/* define additional target keywords */ -/* ========================================================================= */ +// ============================================================================ +// define additional platform keywords for CPU architecture +// ============================================================================ + +#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) +#define PLATFORM_64_BIT +#define PLATFORM_XX_BIT_STRING "64-bit" +#else +#define PLATFORM_32_BIT +#define PLATFORM_XX_BIT_STRING "32-bit" +#endif + + +// ============================================================================ +// define additional target keywords +// ============================================================================ #if defined(TARGET_SDL2) #ifndef TARGET_SDL @@ -167,12 +178,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