Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
config.h
Go to the documentation of this file.
1 /* ========================================================================= *
2 * *
3 * OpenMesh *
4 * Copyright (c) 2001-2015, RWTH-Aachen University *
5 * Department of Computer Graphics and Multimedia *
6 * All rights reserved. *
7 * www.openmesh.org *
8 * *
9 *---------------------------------------------------------------------------*
10 * This file is part of OpenMesh. *
11 *---------------------------------------------------------------------------*
12 * *
13 * Redistribution and use in source and binary forms, with or without *
14 * modification, are permitted provided that the following conditions *
15 * are met: *
16 * *
17 * 1. Redistributions of source code must retain the above copyright notice, *
18 * this list of conditions and the following disclaimer. *
19 * *
20 * 2. Redistributions in binary form must reproduce the above copyright *
21 * notice, this list of conditions and the following disclaimer in the *
22 * documentation and/or other materials provided with the distribution. *
23 * *
24 * 3. Neither the name of the copyright holder nor the names of its *
25 * contributors may be used to endorse or promote products derived from *
26 * this software without specific prior written permission. *
27 * *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
30 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
31 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
32 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
33 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
34 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
35 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
36 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
37 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
38 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
39 * *
40 * ========================================================================= */
41
42 /*===========================================================================*\
43 * *
44 * $Revision$ *
45 * $Date$ *
46 * *
47 \*===========================================================================*/
48
54 //=============================================================================
55
56 #ifndef OPENMESH_CONFIG_H
57 #define OPENMESH_CONFIG_H
58
59 //=============================================================================
60
61 #include <assert.h>
62 #include <OpenMesh/Core/System/compiler.hh>
63 #include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
64
65 // ----------------------------------------------------------------------------
66
67
68 #define OM_VERSION 0x60300
69 //#define OM_VERSION 0x50100
70
71 // only defined, if it is a beta version
72 //#define OM_VERSION_BETA 4
73
74 #define OM_GET_VER ((OM_VERSION && 0xf0000) >> 16)
75 #define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8)
76 #define OM_GET_MIN (OM_VERSION && 0x000ff)
77
78 #ifdef WIN32
79 # ifdef min
80 # 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 !")
81 # error min macro active
82 # endif
83 # ifdef max
84 # 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 !")
85 # error max macro active
86 # endif
87 #endif
88
89 #if defined(_MSC_VER)
90 # define DEPRECATED(msg) __declspec(deprecated(msg))
91 #elif defined(__GNUC__)
92 # if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 /* Test for GCC >= 4.5.0 */
93 # define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
94 # else
95 # define DEPRECATED(msg) __attribute__ ((deprecated))
96 # endif
97 #elif defined(__clang__)
98 # define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
99 #else
100 # define DEPRECATED(msg)
101 #endif
102
103 typedef unsigned int uint;
104
105 #if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__))
106 #define OM_HAS_HASH
107 #endif
108
109 //=============================================================================
110 #endif // OPENMESH_CONFIG_H defined
111 //=============================================================================