diff options
author | Thierry Crozat | 2017-02-06 21:49:38 +0000 |
---|---|---|
committer | Thierry Crozat | 2017-02-06 21:49:38 +0000 |
commit | 5484f36f38eddd9132e19e81c7b47e68f0c07846 (patch) | |
tree | d3c116bbce7173d82fd5454d99e5b35f0d309acc /common | |
parent | 293d59f6ada41d8c942717a0248d6aef62765a29 (diff) | |
download | scummvm-rg350-5484f36f38eddd9132e19e81c7b47e68f0c07846.tar.gz scummvm-rg350-5484f36f38eddd9132e19e81c7b47e68f0c07846.tar.bz2 scummvm-rg350-5484f36f38eddd9132e19e81c7b47e68f0c07846.zip |
BUILD: Define SCUMM_64BITS on 64 bits platforms when not using configure
This for example fixes the compilation of the fullpipe engine on 64 bits
platforms when using create_project.
Diffstat (limited to 'common')
-rw-r--r-- | common/scummsys.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 27fcb84505..938770baa6 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -309,6 +309,23 @@ #endif #endif +// +// Determine 64 bitness +// Reference: http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros +// +#if !defined(HAVE_CONFIG_H) + + #if defined(__x86_64__) || \ + defined(_M_X64) || \ + defined(__ppc64__) || \ + defined(__powerpc64__) || \ + defined(__LP64__) + + #define SCUMM_64BITS + + #endif + +#endif // // Some more system specific settings. |