- Explicitly use CPU architecture detection only for platforms that don't use autoconf. Fixes Linux build warnings. (Regression from r4824.)
This commit is contained in:
rogerman 2013-11-04 16:37:00 +00:00
parent 5f1d7492cc
commit 8c2fb6e44e
1 changed files with 9 additions and 7 deletions

View File

@ -19,13 +19,6 @@
#ifndef TYPES_HPP
#define TYPES_HPP
// Determine CPU architecture
#if defined(__x86_64__) || defined(__LP64) || defined(__IA64__) || defined(_M_X64) || defined(_WIN64)
#define HOST_64
#else
#define HOST_32
#endif
//analyze microsoft compilers
#ifdef _MSC_VER
#define HOST_WINDOWS
@ -35,6 +28,15 @@
#endif //_MSC_VER
// Determine CPU architecture for platforms that don't use the autoconf script
#if defined(HOST_WINDOWS) || defined(DESMUME_COCOA)
#if defined(__x86_64__) || defined(__LP64) || defined(__IA64__) || defined(_M_X64) || defined(_WIN64)
#define HOST_64
#else
#define HOST_32
#endif
#endif
//enforce a constraint: gdb stub requires developer
#if defined(GDB_STUB) && !defined(DEVELOPER)
#define DEVELOPER