Throw Error when NOMINMAX is not defined on windows
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@213 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -65,6 +65,17 @@
|
||||
#define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8)
|
||||
#define OM_GET_MIN (OM_VERSION && 0x000ff)
|
||||
|
||||
#ifdef WIN32
|
||||
# ifdef min
|
||||
# pragma message("Detected min macro! OpenMesh does not compiled with min/max macros active! Please add a define NOMINMAX to your compiler flags !")
|
||||
# error min macro active
|
||||
# endif
|
||||
# ifdef max
|
||||
# pragma message("Detected max macro! OpenMesh does not compiled with min/max macros active! Please add a define NOMINMAX to your compiler flags !")
|
||||
# error max macro active
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef unsigned int uint;
|
||||
//=============================================================================
|
||||
#endif // OPENMESH_CONFIG_H defined
|
||||
|
||||
Reference in New Issue
Block a user