Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/netp2/src/OrxonoxConfig.h.in @ 2947

Last change on this file since 2947 was 2947, checked in by scheusso, 15 years ago

applying change from trunk (r2946)

  • Property svn:eol-style set to native
  • Property svn:mergeinfo set to (toggle deleted branches)
    /code/branches/gui/src/OrxonoxConfig.h.inmergedeligible
    /code/branches/pickups/src/OrxonoxConfig.h.inmergedeligible
    /code/branches/pickups2/src/OrxonoxConfig.h.inmergedeligible
    /code/trunk/src/OrxonoxConfig.h.inmergedeligible
    /code/branches/buildsystem/src/OrxonoxConfig.h.in1874-2276,​2278-2400
    /code/branches/buildsystem2/src/OrxonoxConfig.h.in2506-2658
    /code/branches/buildsystem3/src/OrxonoxConfig.h.in2662-2708
    /code/branches/ceguilua/src/OrxonoxConfig.h.in1802-1808
    /code/branches/core3/src/OrxonoxConfig.h.in1572-1739
    /code/branches/gcc43/src/OrxonoxConfig.h.in1580
    /code/branches/input/src/OrxonoxConfig.h.in1629-1636
    /code/branches/lodfinal/src/OrxonoxConfig.h.in2372-2411
    /code/branches/miniprojects/src/OrxonoxConfig.h.in2754-2824
    /code/branches/network/src/OrxonoxConfig.h.in2356
    /code/branches/network64/src/OrxonoxConfig.h.in2210-2355
    /code/branches/objecthierarchy/src/OrxonoxConfig.h.in1911-2085,​2100,​2110-2169
    /code/branches/objecthierarchy2/src/OrxonoxConfig.h.in2171-2479
    /code/branches/overlay/src/OrxonoxConfig.h.in2117-2385
    /code/branches/physics/src/OrxonoxConfig.h.in1912-2055,​2107-2439
    /code/branches/physics_merge/src/OrxonoxConfig.h.in2436-2457
    /code/branches/presentation/src/OrxonoxConfig.h.in2369-2652,​2654-2660
    /code/branches/questsystem/src/OrxonoxConfig.h.in1894-2088
    /code/branches/questsystem2/src/OrxonoxConfig.h.in2107-2259
    /code/branches/script_trigger/src/OrxonoxConfig.h.in1295-1953,​1955
    /code/branches/weapon/src/OrxonoxConfig.h.in1925-2094
    /code/branches/weapon2/src/OrxonoxConfig.h.in2107-2488
File size: 5.1 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 *   Original code: OgrePlatform.h, licensed under the LGPL. The code
28 *   has changed almost completely though.
29 *
30 *   Caution: Do not configure this file CMake configuration (Debug, Release, etc.)
31 *            dependent! XCode and Visual Studio have the same file for all.
32 *
33 */
34
35/**
36 @file
37 @brief
38    Various constants for compiler, architecture and platform.
39
40    @GENERATED_FILE_COMMENT@
41 */
42
43#ifndef _OrxonoxConfig_H__
44#define _OrxonoxConfig_H__
45
46/*---------------------------------
47 * Platform and compiler related options
48 *-------------------------------*/
49#cmakedefine ORXONOX_PLATFORM_WINDOWS
50#cmakedefine ORXONOX_PLATFORM_LINUX
51#cmakedefine ORXONOX_PLATFORM_APPLE
52#cmakedefine ORXONOX_PLATFORM_UNIX /* Apple and Linux */
53
54/* Determine compiler and set ORXONOX_COMP_VER */
55#if defined( _MSC_VER )
56#  define ORXONOX_COMPILER_MSVC
57#  define ORXONOX_COMP_VER _MSC_VER
58
59#elif defined( __GNUC__ )
60#  define ORXONOX_COMPILER_GCC
61#  define ORXONOX_COMP_VER (((__GNUC__)*100) + \
62        (__GNUC_MINOR__*10) + \
63        __GNUC_PATCHLEVEL__)
64#  if defined(__MINGW32__)
65#    define ORXONOX_COMPILER_MINGW
66#  endif
67
68#elif defined( __BORLANDC__ )
69#  define ORXONOX_COMPILER_BORLAND
70#  define ORXONOX_COMP_VER __BCPLUSPLUS__
71
72#else
73#  pragma error "No known compiler. Abort!"
74
75#endif
76
77/* Endianness */
78#cmakedefine ORXONOX_BIG_ENDIAN
79#cmakedefine ORXONOX_LITTLE_ENDIAN
80
81/* Architecture */
82#cmakedefine ORXONOX_ARCH_32
83#cmakedefine ORXONOX_ARCH_64
84
85/* See if we can use __forceinline or if we need to use __inline instead */
86#cmakedefine HAVE_FORCEINLINE
87#ifndef FORCEINLINE
88#  ifdef HAVE_FORCEINLINE
89#    define FORCEINLINE __forceinline
90#  else
91#    define FORCEINLINE __inline
92#  endif
93#endif
94
95/* Try to define function information */
96#ifndef __FUNCTIONNAME__
97#  ifdef ORXONOX_COMPILER_BORLAND
98#    define __FUNCTIONNAME__ __FUNC__
99#  elif defined(ORXONOX_COMPILER_GCC)
100#    define __FUNCTIONNAME__ __PRETTY_FUNCTION__
101#  elif defined(ORXONOX_COMPILER_MSVC)
102#    define __FUNCTIONNAME__ __FUNCTION__
103#  else
104#    define __FUNCTIONNAME__
105#  endif
106#endif
107
108
109/*---------------------------------
110 * Version information
111 *-------------------------------*/
112#define ORXONOX_VERSION_MAJOR @ORXONOX_VERSION_MAJOR@
113#define ORXONOX_VERSION_MINOR @ORXONOX_VERSION_MINOR@
114#define ORXONOX_VERSION_PATCH @ORXONOX_VERSION_PATCH@
115#define ORXONOX_VERSION_NAME "@ORXONOX_VERSION_NAME@"
116
117#define ORXONOX_VERSION ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH)
118
119
120/*---------------------------------
121 * Unix settings
122 *-------------------------------*/
123#ifdef ORXONOX_PLATFORM_UNIX
124
125/* TODO: Check what this actually is and whether we need it or not */
126#if 0
127#  ifdef ORXONOX_PLATFORM_APPLE
128#    define ORXONOX_PLATFORM_LIB "OrxonoxPlatform.bundle"
129#  else
130/* ORXONOX_PLATFORM_LINUX */
131#    define ORXONOX_PLATFORM_LIB "libOrxonoxPlatform.so"
132#  endif
133#endif
134
135#endif /* Patform Unix */
136
137
138/*---------------------------------
139 * Apple Settings
140 *-------------------------------*/
141
142
143/*---------------------------------
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. */
157#cmakedefine HAVE_ISO646_H
158#ifdef HAVE_ISO646_H
159#  include <iso646.h>
160#endif
161
162#cmakedefine HAVE_STDINT_H
163#ifdef HAVE_STDINT_H
164#  include <stdint.h>
165#elif defined(ORXONOX_COMPILER_MSVC)
166typedef __int8            int8_t;
167typedef __int16           int16_t;
168typedef __int32           int32_t;
169typedef __int64           int64_t;
170typedef unsigned __int8   uint8_t;
171typedef unsigned __int16  uint16_t;
172typedef unsigned __int32  uint32_t;
173typedef unsigned __int64  uint64_t;
174#endif
175
176#cmakedefine HAVE_STDDEF_H
177/* Quite large, do not include unless necessary
178#ifdef HAVE_STDDEF_H
179#  include <stddef.h>
180#endif
181*/
182
183/* Visual Leak Detector looks for memory leaks */
184#cmakedefine VISUAL_LEAK_DETECTOR_ENABLE
185#ifdef VISUAL_LEAK_DETECTOR_ENABLE
186#  include <vld.h>
187#endif
188
189#endif /* _OrxonoxConfig_H__ */
Note: See TracBrowser for help on using the repository browser.