21 #ifndef GNC_PLATFORM_H
22 #define GNC_PLATFORM_H
27 #define PLATFORM(GNC_FEATURE) (defined( GNC_PLATFORM_##GNC_FEATURE ) && GNC_PLATFORM_##GNC_FEATURE)
28 #define COMPILER(GNC_FEATURE) (defined( GNC_COMPILER_##GNC_FEATURE ) && GNC_COMPILER_##GNC_FEATURE)
29 #define HAVE(GNC_FEATURE) (defined( HAVE_##GNC_FEATURE ) && HAVE_##GNC_FEATURE)
30 #define USE(GNC_FEATURE) (defined( GNC_USE_##GNC_FEATURE ) && GNC_USE_##GNC_FEATURE)
31 #define ENABLE(GNC_FEATURE) (defined( ENABLE_##GNC_FEATURE ) && ENABLE_##GNC_FEATURE)
45 #define GNC_COMPILER_MSVC 1
47 #define GNC_COMPILER_MSVC7 1
52 #if defined(__CC_ARM) || defined(__ARMCC__)
53 #define GNC_COMPILER_RVCT 1
58 #if defined(__GNUC__) && !COMPILER(RVCT)
59 #define GNC_COMPILER_GCC 1
63 #if defined(MINGW) || defined(__MINGW32__)
64 #define GNC_COMPILER_MINGW 1