|
TrinityCore
|
Go to the documentation of this file.
19 #ifndef TRINITY_COMPILERDEFS_H
20 #define TRINITY_COMPILERDEFS_H
22 #define PLATFORM_WINDOWS 0
23 #define PLATFORM_UNIX 1
24 #define PLATFORM_APPLE 2
25 #define PLATFORM_INTEL 3
29 # define PLATFORM PLATFORM_WINDOWS
30 #elif defined( __WIN32__ ) || defined( WIN32 ) || defined( _WIN32 )
31 # define PLATFORM PLATFORM_WINDOWS
32 #elif defined( __APPLE_CC__ )
33 # define PLATFORM PLATFORM_APPLE
34 #elif defined( __INTEL_COMPILER )
35 # define PLATFORM PLATFORM_INTEL
37 # define PLATFORM PLATFORM_UNIX
40 #define COMPILER_MICROSOFT 0
41 #define COMPILER_GNU 1
42 #define COMPILER_BORLAND 2
43 #define COMPILER_INTEL 3
46 # define COMPILER COMPILER_MICROSOFT
47 #elif defined( __BORLANDC__ )
48 # define COMPILER COMPILER_BORLAND
49 #elif defined( __INTEL_COMPILER )
50 # define COMPILER COMPILER_INTEL
51 #elif defined( __GNUC__ )
52 # define COMPILER COMPILER_GNU
53 # define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
55 # error "FATAL ERROR: Unknown compiler."