config.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  Copyright (C) 2002-2013 Gilles Debunne. All rights reserved.
4 
5  This file is part of the QGLViewer library version 2.4.0.
6 
7  http://www.libqglviewer.com - contact@libqglviewer.com
8 
9  This file may be used under the terms of the GNU General Public License
10  versions 2.0 or 3.0 as published by the Free Software Foundation and
11  appearing in the LICENSE file included in the packaging of this file.
12  In addition, as a special exception, Gilles Debunne gives you certain
13  additional rights, described in the file GPL_EXCEPTION in this package.
14 
15  libQGLViewer uses dual licensing. Commercial/proprietary software must
16  purchase a libQGLViewer Commercial License.
17 
18  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 
21 *****************************************************************************/
22 
24 // libQGLViewer configuration file //
25 // Modify these settings according to your local configuration //
27 
28 #ifndef QGLVIEWER_CONFIG_H
29 #define QGLVIEWER_CONFIG_H
30 
31 #define QGLVIEWER_VERSION 0x020400
32 
33 // Needed for Qt < 4 (?)
34 #ifndef QT_CLEAN_NAMESPACE
35 # define QT_CLEAN_NAMESPACE
36 #endif
37 
38 // Get QT_VERSION and other Qt flags
39 #include <qglobal.h>
40 
41 #if QT_VERSION < 0x030000
42 # ifdef _OS_WIN32_
43 # define Q_OS_WIN32
44 # endif
45 #endif
46 
47 // Win 32 DLL export macros
48 #ifdef Q_OS_WIN32
49 # ifndef M_PI
50 # define M_PI 3.14159265358979323846f
51 # endif
52 # ifndef QGLVIEWER_STATIC
53 # ifdef CREATE_QGLVIEWER_DLL
54 # if QT_VERSION >= 0x040500
55 # define QGLVIEWER_EXPORT Q_DECL_EXPORT
56 # else
57 # define QGLVIEWER_EXPORT __declspec(dllexport)
58 # endif
59 # else
60 # if QT_VERSION >= 0x040500
61 # define QGLVIEWER_EXPORT Q_DECL_IMPORT
62 # else
63 # define QGLVIEWER_EXPORT __declspec(dllimport)
64 # endif
65 # endif
66 # endif
67 # ifndef __MINGW32__
68 # pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
69 # pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
70 # endif
71 #endif // Q_OS_WIN32
72 
73 // For other architectures, this macro is empty
74 #ifndef QGLVIEWER_EXPORT
75 # define QGLVIEWER_EXPORT
76 #endif
77 
78 // OpenGL includes - Included here and hence shared by all the files that need OpenGL headers.
79 #if QT_VERSION >= 0x040000
80 # include <QGLWidget>
81 #else
82 # include <qgl.h>
83 #endif
84 
85 // GLU was removed from Qt in version 4.8
86 #ifdef Q_OS_MAC
87 # include <OpenGL/glu.h>
88 #else
89 # include <GL/glu.h>
90 #endif
91 
92 // Old Qt versions require GLUT for text rendering
93 #define QGLVIEWER_QT_VERSION_WITHOUT_GLUT 0x030100
94 #if QT_VERSION < QGLVIEWER_QT_VERSION_WITHOUT_GLUT
95 # ifdef Q_OS_MAC
96 # include <GLUT/glut.h>
97 # else
98 # ifdef Q_OS_WIN32
99 # include <glut.h>
100 # else
101 # include <GL/glut.h>
102 # endif
103 # endif
104 #endif
105 
106 // Container classes interfaces changed a lot in Qt.
107 // Compatibility patches are all grouped here.
108 #if QT_VERSION >= 0x040000
109 # include <QList>
110 # include <QVector>
111 #else
112 # define qMax(a,b) QMAX(a,b)
113 # include <qptrlist.h>
114 # include <qvaluevector.h>
115 #endif
116 
117 // Support for the no_keywords CONFIG option on previous Qt versions
118 #if QT_VERSION < 0x040400
119 # define Q_SLOTS slots
120 # define Q_SIGNALS signals
121 # define Q_EMIT emit
122 #endif
123 
124 // For deprecated methods
125 // #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": "
126 // #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << "getOrientationAxisAngle()." << std::endl; exit(0); }
127 
128 // Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt versions.
129 // Uncomment these lines if you have error message dealing with operator << on QStrings
130 // #if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 96)
131 // # include <iostream>
132 // # include <qstring.h>
133 // std::ostream& operator<<(std::ostream& out, const QString& str)
134 // { out << str.latin1(); return out; }
135 // #endif
136 
137 #endif // QGLVIEWER_CONFIG_H


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Jun 10 2019 14:00:24