summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-10 04:17:44 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-10 22:18:47 -0700
commit6eb4f8d4954d7ba008de2eb921d42e02993b9db5 (patch)
tree0f06c68e70ee9f8be0bf6ac0ff29a3d08159a322 /crawl-ref/source/newgame.cc
parenta0582692a2630f42b8e64d6baaab001a793fcf3c (diff)
downloadcrawl-ref-6eb4f8d4954d7ba008de2eb921d42e02993b9db5.tar.gz
crawl-ref-6eb4f8d4954d7ba008de2eb921d42e02993b9db5.zip
platform.h: created to allow for much better platform detection
platform.h is a tool I made to allow for effortless detection of the compiler, OS, and architecture that the app is being compiled for. - To check the operating system, you can check whether these macros are defined: TARGET_OS_WINDOWS TARGET_OS_MACOSX TARGET_OS_LINUX TARGET_OS_SOLARIS // OpenSolaris, Solaris, etc TARGET_OS_FREEBSD TARGET_OS_OPENBSD TARGET_OS_NETBSD TARGET_OS_DOS TARGET_OS_NDSFIRMWARE // NDS == Nintendo DS - To check whether the platform is 32 or 64-bit: TARGET_CPU_BITS == 32 TARGET_CPU_BITS == 64 - To check your platform's endianness (byte ordering), check whether these are defined: TARGET_LITTLE_ENDIAN // x86, x86_64, Alpha, IA64, ARM TARGET_BIG_ENDIAN // PowerPC, SPARC - To check for a compiler, you can check whether these macros are defined: TARGET_COMPILER_MSVC // Visual C++ TARGET_COMPILER_ICC // Intel C/C++ compiler TARGET_COMPILER_GCC // GCC Note that there are some subsets of GCC that you may want to check for (these macros will be defined *in addition* to the TARGET_COMPILER_GCC macro: TARGET_COMPILER_CYGWIN TARGET_COMPILER_MINGW TARGET_COMPILER_DJGPP // DOS port TARGET_COMPILER_BORLAND Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/newgame.cc')
0 files changed, 0 insertions, 0 deletions