X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=b9c8a411090f80b5a91a3776d3732d9f2dfe8082;hp=8b13dc97080e29b993c461447e432a8440e55b6e;hb=HEAD;hpb=64e7c54dce6ea8c063f04198c64c5057d751c928 diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 8b13dc97..b9c8a411 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // platform.h // ============================================================================ @@ -16,8 +16,8 @@ // define main platform keywords // ============================================================================ -#if defined(WIN32) || defined(_WIN32) -#define PLATFORM_WIN32 +#if defined(WIN32) || defined(_WIN32) || defined(_WIN64) +#define PLATFORM_WINDOWS #define PLATFORM_STRING "Windows" #else #define PLATFORM_UNIX @@ -38,7 +38,7 @@ #if defined(AMIGA) || defined(__AMIGA) || defined(__amigados__) #define PLATFORM_AMIGA #undef PLATFORM_STRING -#define PLATFORM_STRING "AmigaOS" +#define PLATFORM_STRING "Amiga" #endif #if defined(__BEOS__) @@ -86,9 +86,9 @@ #endif #if defined(__APPLE__) && defined(__MACH__) -#define PLATFORM_MACOSX +#define PLATFORM_MAC #undef PLATFORM_STRING -#define PLATFORM_STRING "Mac OS X" +#define PLATFORM_STRING "Mac" #endif #if defined(__NetBSD__) @@ -153,6 +153,25 @@ #define PLATFORM_STRING "Android" #endif +#if defined(__EMSCRIPTEN__) +#define PLATFORM_EMSCRIPTEN +#undef PLATFORM_STRING +#define PLATFORM_STRING "Emscripten" +#endif + + +// ============================================================================ +// 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