Changeset 3196 for code/trunk/src/OrxonoxConfig.h.in
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/OrxonoxConfig.h.in
r2946 r3196 34 34 35 35 /** 36 37 36 @file 37 @brief 38 38 Various constants for compiler, architecture and platform. 39 39 @remarks 40 40 @GENERATED_FILE_COMMENT@ 41 41 */ 42 42 43 43 #ifndef _OrxonoxConfig_H__ … … 52 52 #cmakedefine ORXONOX_PLATFORM_UNIX /* Apple and Linux */ 53 53 54 / * Determine compiler and set ORXONOX_COMP_VER */54 // Determine compiler and set ORXONOX_COMP_VER 55 55 #if defined( _MSC_VER ) 56 56 # define ORXONOX_COMPILER_MSVC … … 75 75 #endif 76 76 77 / * Endianness */77 // Endianness 78 78 #cmakedefine ORXONOX_BIG_ENDIAN 79 79 #cmakedefine ORXONOX_LITTLE_ENDIAN 80 80 81 / * Architecture */81 // Architecture 82 82 #cmakedefine ORXONOX_ARCH_32 83 83 #cmakedefine ORXONOX_ARCH_64 84 84 85 / * See if we can use __forceinline or if we need to use __inline instead */85 // See if we can use __forceinline or if we need to use __inline instead 86 86 #cmakedefine HAVE_FORCEINLINE 87 87 #ifndef FORCEINLINE … … 93 93 #endif 94 94 95 / * Try to define function information */95 // Try to define function information 96 96 #ifndef __FUNCTIONNAME__ 97 97 # ifdef ORXONOX_COMPILER_BORLAND … … 115 115 #define ORXONOX_VERSION_NAME "@ORXONOX_VERSION_NAME@" 116 116 117 #define ORXONOX_VERSION ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH) 117 //! Defines version info encoded as 0xMMIIPP (M: Major version, I: Minor version, P: Patch version, all as hex) 118 #define ORXONOX_VERSION \ 119 ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH) 118 120 119 121 … … 123 125 #ifdef ORXONOX_PLATFORM_UNIX 124 126 125 / * TODO: Check what this actually is and whether we need it or not */127 // TODO: Check what this actually is and whether we need it or not 126 128 #if 0 127 129 # ifdef ORXONOX_PLATFORM_APPLE 128 130 # define ORXONOX_PLATFORM_LIB "OrxonoxPlatform.bundle" 129 # else 130 /* ORXONOX_PLATFORM_LINUX */ 131 # else // ORXONOX_PLATFORM_LINUX 131 132 # define ORXONOX_PLATFORM_LIB "libOrxonoxPlatform.so" 132 133 # endif … … 142 143 143 144 /*--------------------------------- 144 * Special Macros 145 *-------------------------------*/ 146 #define MACRO_CONCATENATE_AUX(a, b) a##b 147 #define MACRO_CONCATENATE(a, b) MACRO_CONCATENATE_AUX(a, b) 148 #define MACRO_QUOTEME_AUX(x) #x 149 #define MACRO_QUOTEME(x) MACRO_QUOTEME_AUX(x) 150 151 152 /*--------------------------------- 153 * Includes 154 *-------------------------------*/ 155 /* Define the english written operators like and, or, xor 156 * This is C++ standard, but the Microsoft compiler doesn't define them. */ 145 * Options 146 *-------------------------------*/ 147 /** 148 @def ORXONOX_RELEASE 149 Enables expensive (build time) optimisations and disables certain features 150 */ 151 #cmakedefine ORXONOX_RELEASE 152 153 154 /*--------------------------------- 155 * Includes and Declarations 156 *-------------------------------*/ 157 // Define the english written operators like and, or, xor 158 // This is C++ standard, but the Microsoft compiler doesn't define them. 157 159 #cmakedefine HAVE_ISO646_H 158 160 #ifdef HAVE_ISO646_H … … 181 183 */ 182 184 183 / * Visual Leak Detector looks for memory leaks */184 #cmakedefine VISUAL_LEAK_DETECTOR_ENABLE 185 #if def VISUAL_LEAK_DETECTOR_ENABLE185 // Always include the memory leak detector for MSVC except for actual releases 186 // Note: Although officially supported, VLD does not work with MSVC 9 187 #if defined(ORXONOX_COMPILER_MSVC) && _MSC_VER < 1500 && !defined(ORXONOX_RELEASE) 186 188 # include <vld.h> 187 189 #endif 188 190 191 // Forward declare the everywhere used std::string 192 namespace std 193 { 194 template<class _Elem> struct char_traits; 195 template<class _Ty> class allocator; 196 template<class _Elem, class _Traits, class _Ax> class basic_string; 197 typedef basic_string<char, char_traits<char>, allocator<char> > string; 198 } 199 189 200 #endif /* _OrxonoxConfig_H__ */
Note: See TracChangeset
for help on using the changeset viewer.