config.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  Copyright (C) 2002-2013 Gilles Debunne. All rights reserved.
00004 
00005  This file is part of the QGLViewer library version 2.4.0.
00006 
00007  http://www.libqglviewer.com - contact@libqglviewer.com
00008 
00009  This file may be used under the terms of the GNU General Public License 
00010  versions 2.0 or 3.0 as published by the Free Software Foundation and
00011  appearing in the LICENSE file included in the packaging of this file.
00012  In addition, as a special exception, Gilles Debunne gives you certain 
00013  additional rights, described in the file GPL_EXCEPTION in this package.
00014 
00015  libQGLViewer uses dual licensing. Commercial/proprietary software must
00016  purchase a libQGLViewer Commercial License.
00017 
00018  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00019  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00020 
00021 *****************************************************************************/
00022 
00024 //               libQGLViewer configuration file                 //
00025 //  Modify these settings according to your local configuration  //
00027 
00028 #ifndef QGLVIEWER_CONFIG_H
00029 #define QGLVIEWER_CONFIG_H
00030 
00031 #define QGLVIEWER_VERSION 0x020400
00032 
00033 // Needed for Qt < 4 (?)
00034 #ifndef QT_CLEAN_NAMESPACE
00035 # define QT_CLEAN_NAMESPACE
00036 #endif
00037 
00038 // Get QT_VERSION and other Qt flags
00039 #include <qglobal.h>
00040 
00041 #if QT_VERSION < 0x030000
00042 # ifdef _OS_WIN32_
00043 #  define Q_OS_WIN32
00044 # endif
00045 #endif
00046 
00047 // Win 32 DLL export macros
00048 #ifdef Q_OS_WIN32
00049 # ifndef M_PI
00050 #  define M_PI 3.14159265358979323846f
00051 # endif
00052 # ifndef QGLVIEWER_STATIC
00053 #   ifdef CREATE_QGLVIEWER_DLL
00054 #     if QT_VERSION >= 0x040500
00055 #       define QGLVIEWER_EXPORT Q_DECL_EXPORT
00056 #     else
00057 #       define QGLVIEWER_EXPORT  __declspec(dllexport)
00058 #     endif
00059 #   else
00060 #     if QT_VERSION >= 0x040500
00061 #       define QGLVIEWER_EXPORT Q_DECL_IMPORT
00062 #     else
00063 #       define QGLVIEWER_EXPORT  __declspec(dllimport)
00064 #     endif
00065 #  endif
00066 # endif
00067 # ifndef __MINGW32__
00068 #  pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
00069 #  pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
00070 # endif
00071 #endif // Q_OS_WIN32
00072 
00073 // For other architectures, this macro is empty
00074 #ifndef QGLVIEWER_EXPORT
00075 # define QGLVIEWER_EXPORT
00076 #endif
00077 
00078 // OpenGL includes - Included here and hence shared by all the files that need OpenGL headers.
00079 #if QT_VERSION >= 0x040000
00080 # include <QGLWidget>
00081 #else
00082 # include <qgl.h>
00083 #endif
00084 
00085 // GLU was removed from Qt in version 4.8 
00086 #ifdef Q_OS_MAC
00087 # include <OpenGL/glu.h>
00088 #else
00089 # include <GL/glu.h>
00090 #endif
00091 
00092 // Old Qt versions require GLUT for text rendering
00093 #define QGLVIEWER_QT_VERSION_WITHOUT_GLUT 0x030100
00094 #if QT_VERSION < QGLVIEWER_QT_VERSION_WITHOUT_GLUT
00095 # ifdef Q_OS_MAC
00096 #  include <GLUT/glut.h>
00097 # else
00098 #  ifdef Q_OS_WIN32
00099 #   include <glut.h>
00100 #  else
00101 #   include <GL/glut.h>
00102 #  endif
00103 # endif
00104 #endif
00105 
00106 // Container classes interfaces changed a lot in Qt.
00107 // Compatibility patches are all grouped here.
00108 #if QT_VERSION >= 0x040000
00109 # include <QList>
00110 # include <QVector>
00111 #else
00112 # define qMax(a,b) QMAX(a,b)
00113 # include <qptrlist.h>
00114 # include <qvaluevector.h>
00115 #endif
00116 
00117 // Support for the no_keywords CONFIG option on previous Qt versions
00118 #if QT_VERSION < 0x040400
00119 # define Q_SLOTS slots
00120 # define Q_SIGNALS signals
00121 # define Q_EMIT emit
00122 #endif
00123 
00124 // For deprecated methods
00125 // #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": "
00126 // #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << "getOrientationAxisAngle()." << std::endl; exit(0); }
00127 
00128 // Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt versions.
00129 // Uncomment these lines if you have error message dealing with operator << on QStrings
00130 // #if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 96)
00131 // # include <iostream>
00132 // # include <qstring.h>
00133 // std::ostream& operator<<(std::ostream& out, const QString& str)
00134 // { out << str.latin1();  return out; }
00135 // #endif
00136 
00137 #endif // QGLVIEWER_CONFIG_H


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Jun 6 2019 17:31:58