/**************************************************************************** Copyright (c) 2018 GeometryFactory Sarl (France). Copyright (C) 2002-2014 Gilles Debunne. All rights reserved. This file is part of a frok of the QGLViewer library version 2.7.0. http://www.libqglviewer.com - contact@libqglviewer.com This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the LICENSE file included in the packaging of this file. libQGLViewer uses dual licensing. Commercial/proprietary software must purchase a libQGLViewer Commercial License. This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. *****************************************************************************/ // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0 /////////////////////////////////////////////////////////////////// // libQGLViewer configuration file // // Modify these settings according to your local configuration // /////////////////////////////////////////////////////////////////// #ifndef QGLVIEWER_CONFIG_H #define QGLVIEWER_CONFIG_H #define QGLVIEWER_VERSION 0x020700 // Needed for Qt < 4 (?) #ifndef QT_CLEAN_NAMESPACE #define QT_CLEAN_NAMESPACE #endif // Get QT_VERSION and other Qt flags #include #if QT_VERSION < 0x040000 Error : libQGLViewer requires a minimum Qt version of 4.0 #endif // Win 32 DLL export macros #ifdef Q_OS_WIN32 #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #ifndef QGLVIEWER_STATIC #if ( defined(CGAL_BUILD_SHARED_LIBS) && ( ! defined(CGAL_HEADER_ONLY) ) ) \ || defined(CGAL_USE_Qt5_RESOURCES) #if QT_VERSION >= 0x040500 #define QGLVIEWER_EXPORT Q_DECL_EXPORT #else #define QGLVIEWER_EXPORT __declspec(dllexport) #endif #else #if QT_VERSION >= 0x040500 #define QGLVIEWER_EXPORT Q_DECL_IMPORT #else #define QGLVIEWER_EXPORT __declspec(dllimport) #endif #endif #endif #ifndef __MINGW32__ #pragma warning(disable : 4251) // DLL interface, needed with Visual 6 #pragma warning(disable : 4786) // identifier truncated to 255 in browser // information (Visual 6). #endif #endif // Q_OS_WIN32 // For other architectures, this macro is empty #ifndef QGLVIEWER_EXPORT #define QGLVIEWER_EXPORT #endif // OpenGL includes - Included here and hence shared by all the files that need // OpenGL headers. #include // Container classes interfaces changed a lot in Qt. // Compatibility patches are all grouped here. #include #include // For deprecated methods // #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": " // #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << // "getOrientationAxisAngle()." << std::endl; exit(0); } // Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt // versions. Uncomment these lines if you have error message dealing with // operator << on QStrings #if defined(__GNUC__) && defined(__GNUC_MINOR__) && // (__GNUC__ < 3) && (__GNUC_MINOR__ < 96) # include # include // std::ostream& operator<<(std::ostream& out, const QString& str) // { out << str.latin1(); return out; } // #endif #endif // QGLVIEWER_CONFIG_H