config.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
4 
5  This file is part of the QGLViewer library version 2.6.3.
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 0x020603
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 < 0x040000
42 Error : libQGLViewer requires a minimum Qt version of 4.0
43 #endif
44 
45 // Win 32 DLL export macros
46 #ifdef Q_OS_WIN32
47 # ifndef M_PI
48 # define M_PI 3.14159265358979323846
49 # endif
50 # ifndef QGLVIEWER_STATIC
51 # ifdef CREATE_QGLVIEWER_DLL
52 # if QT_VERSION >= 0x040500
53 # define QGLVIEWER_EXPORT Q_DECL_EXPORT
54 # else
55 # define QGLVIEWER_EXPORT __declspec(dllexport)
56 # endif
57 # else
58 # if QT_VERSION >= 0x040500
59 # define QGLVIEWER_EXPORT Q_DECL_IMPORT
60 # else
61 # define QGLVIEWER_EXPORT __declspec(dllimport)
62 # endif
63 # endif
64 # endif
65 # ifndef __MINGW32__
66 # pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
67 # pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
68 # endif
69 #endif // Q_OS_WIN32
70 
71 // For other architectures, this macro is empty
72 #ifndef QGLVIEWER_EXPORT
73 # define QGLVIEWER_EXPORT
74 #endif
75 
76 // OpenGL includes - Included here and hence shared by all the files that need OpenGL headers.
77 # include <QGLWidget>
78 
79 // GLU was removed from Qt in version 4.8
80 #ifdef Q_OS_MAC
81 # include <OpenGL/glu.h>
82 #else
83 # include <GL/glu.h>
84 #endif
85 
86 // Container classes interfaces changed a lot in Qt.
87 // Compatibility patches are all grouped here.
88 #include <QList>
89 #include <QVector>
90 
91 // For deprecated methods
92 // #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": "
93 // #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << "getOrientationAxisAngle()." << std::endl; exit(0); }
94 
95 // Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt versions.
96 // Uncomment these lines if you have error message dealing with operator << on QStrings
97 // #if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 96)
98 // # include <iostream>
99 // # include <qstring.h>
100 // std::ostream& operator<<(std::ostream& out, const QString& str)
101 // { out << str.latin1(); return out; }
102 // #endif
103 
104 #endif // QGLVIEWER_CONFIG_H


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Wed Jun 5 2019 19:26:39