X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=d5b15580f7c2c9841a509a071d9503124c5cf77f;hb=d4a697f4507026324c4218ba2c445d6e2e0b4dda;hp=8b13dc97080e29b993c461447e432a8440e55b6e;hpb=64e7c54dce6ea8c063f04198c64c5057d751c928;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 8b13dc97..d5b15580 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -154,6 +154,19 @@ #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 // ============================================================================