Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GlobalDefines.hh
Go to the documentation of this file.
1 /*===========================================================================*\
2 * *
3 * OpenFlipper *
4 * Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
5 * www.openflipper.org *
6 * *
7 *--------------------------------------------------------------------------- *
8 * This file is part of OpenFlipper. *
9 * *
10 * OpenFlipper is free software: you can redistribute it and/or modify *
11 * it under the terms of the GNU Lesser General Public License as *
12 * published by the Free Software Foundation, either version 3 of *
13 * the License, or (at your option) any later version with the *
14 * following exceptions: *
15 * *
16 * If other files instantiate templates or use macros *
17 * or inline functions from this file, or you compile this file and *
18 * link it with other files to produce an executable, this file does *
19 * not by itself cause the resulting executable to be covered by the *
20 * GNU Lesser General Public License. This exception does not however *
21 * invalidate any other reasons why the executable file might be *
22 * covered by the GNU Lesser General Public License. *
23 * *
24 * OpenFlipper is distributed in the hope that it will be useful, *
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
27 * GNU Lesser General Public License for more details. *
28 * *
29 * You should have received a copy of the GNU LesserGeneral Public *
30 * License along with OpenFlipper. If not, *
31 * see <http://www.gnu.org/licenses/>. *
32 * *
33 \*===========================================================================*/
34 
35 /*===========================================================================*\
36 * *
37 * $Revision: 14802 $ *
38 * $LastChangedBy: moebius $ *
39 * $Date: 2012-06-27 17:35:32 +0200 (Mi, 27 Jun 2012) $ *
40 * *
41 \*===========================================================================*/
42 
43 
44 
45 
46 //=============================================================================
47 //
48 // Global defines for OpenFlipper
49 //
50 //=============================================================================
51 
57 #ifndef GLOBALDEFINES_HH
58 #define GLOBALDEFINES_HH
59 
60 
67 #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__ * 10)
68 
69 
70 #if QT_VERSION > 0x040802
71  #ifdef WIN32
72  #pragma message("Detected QT Version higher than 4.8.2!")
73  #pragma message("OpenFlipper has not been tested with this QT Version.")
74  #else
75  #warning Detected QT Version higher than 4.8.1!
76  #warning OpenFlipper has not been tested with this QT Version.
77  #endif
78 #endif
79 
80 //== DEEFINES =================================================================
81 
85 #define OM_FORCE_STATIC_CAST
86 
89 #ifndef USE_OPENMP
90  #if GCC_VERSION >= 4030
91  #define USE_OPENMP
92  #endif
93 #endif
94 
95 
96 #ifndef DLLEXPORT
97  #ifdef WIN32
98  #ifdef PLUGINLIBDLL
99  #ifdef USEPLUGINLIBDLL
100  #define DLLEXPORT __declspec(dllimport)
101  #define DLLEXPORTONLY
102  #else
103  #define DLLEXPORT __declspec(dllexport)
104  #define DLLEXPORTONLY __declspec(dllexport)
105  #endif
106  #else
107  #define DLLEXPORT
108  #define DLLEXPORTONLY
109  #endif
110  #else
111  #define DLLEXPORT
112  #define DLLEXPORTONLY
113  #endif
114 #endif
115 
116 // Disable the warnings about needs to have DLL interface as we have tons of vector templates
117 #ifdef WIN32
118  #pragma warning( disable: 4251 )
119 #endif
120 
121 
122 //=============================================================================
123 #endif // GLOBALDEFINES_HH defined
124 //=============================================================================