config.h 4.95 KB
 Jan Möbius committed Jun 04, 2009 1 2 3 ``````/*===========================================================================*\ * * * OpenMesh * `````` Jan Möbius committed Feb 05, 2014 4 `````` * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen * `````` Jan Möbius committed Jun 04, 2009 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 `````` * www.openmesh.org * * * *---------------------------------------------------------------------------* * This file is part of OpenMesh. * * * * OpenMesh is free software: you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by the Free Software Foundation, either version 3 of * * the License, or (at your option) any later version with the * * following exceptions: * * * * If other files instantiate templates or use macros * * or inline functions from this file, or you compile this file and * * link it with other files to produce an executable, this file does * * not by itself cause the resulting executable to be covered by the * * GNU Lesser General Public License. This exception does not however * * invalidate any other reasons why the executable file might be * * covered by the GNU Lesser General Public License. * * * * OpenMesh is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Lesser General Public License for more details. * * * * You should have received a copy of the GNU LesserGeneral Public * * License along with OpenMesh. If not, * * see . * * * \*===========================================================================*/ /*===========================================================================*\ * * * \$Revision\$ * * \$Date\$ * * * \*===========================================================================*/ `````` Jan Möbius committed Feb 06, 2009 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 `````` /** \file config.h * \todo Move content to config.hh and include it to be compatible with old * source. */ //============================================================================= #ifndef OPENMESH_CONFIG_H #define OPENMESH_CONFIG_H //============================================================================= #include #include `````` Jan Möbius committed Sep 23, 2012 56 ``````#include `````` Jan Möbius committed Feb 06, 2009 57 58 59 `````` // ---------------------------------------------------------------------------- `````` Jan Möbius committed Feb 05, 2014 60 61 ``````#define OM_VERSION 0x30000 //#define OM_VERSION 0x20400 `````` Jan Möbius committed Feb 06, 2009 62 63 `````` // only defined, if it is a beta version `````` Jan Möbius committed Sep 07, 2012 64 ``````//#define OM_VERSION_BETA 4 `````` Jan Möbius committed Feb 06, 2009 65 66 67 68 69 `````` #define OM_GET_VER ((OM_VERSION && 0xf0000) >> 16) #define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8) #define OM_GET_MIN (OM_VERSION && 0x000ff) `````` Jan Möbius committed Oct 16, 2009 70 71 ``````#ifdef WIN32 # ifdef min `````` Jan Möbius committed Feb 05, 2014 72 ``````# pragma message("Detected min macro! OpenMesh does not compile with min/max macros active! Please add a define NOMINMAX to your compiler flags or add #undef min before including OpenMesh headers !") `````` Jan Möbius committed Oct 16, 2009 73 74 75 ``````# error min macro active # endif # ifdef max `````` Jan Möbius committed Feb 05, 2014 76 ``````# pragma message("Detected max macro! OpenMesh does not compile with min/max macros active! Please add a define NOMINMAX to your compiler flags or add #undef max before including OpenMesh headers !") `````` Jan Möbius committed Oct 16, 2009 77 78 79 80 ``````# error max macro active # endif #endif `````` Matthias Möller committed Aug 07, 2013 81 ``````#if defined(_MSC_VER) `````` Hans-Christian Ebke committed Aug 07, 2013 82 83 ``````# define DEPRECATED(msg) __declspec(deprecated(msg)) #elif defined(__GNUC__) `````` Matthias Möller committed Aug 07, 2013 84 ``````# if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 /* Test for GCC >= 4.5.0 */ `````` Hans-Christian Ebke committed Aug 07, 2013 85 86 87 88 89 90 ``````# define DEPRECATED(msg) __attribute__ ((deprecated(msg))) # else # define DEPRECATED(msg) __attribute__ ((deprecated)) # endif #elif defined(__clang__) # define DEPRECATED(msg) __attribute__ ((deprecated(msg))) `````` Hans-Christian Ebke committed Aug 07, 2013 91 ``````#else `````` Hans-Christian Ebke committed Aug 07, 2013 92 ``````# define DEPRECATED(msg) `````` Hans-Christian Ebke committed Aug 07, 2013 93 94 ``````#endif `````` Jan Möbius committed Feb 06, 2009 95 96 97 98 ``````typedef unsigned int uint; //============================================================================= #endif // OPENMESH_CONFIG_H defined //=============================================================================``````