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:
Jan Möbius
2009-10-16 12:46:28 +00:00
parent 6d68f1f604
commit 395c40f40d

View File

@@ -65,6 +65,17 @@
#define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8) #define OM_GET_MAJ ((OM_VERSION && 0x0ff00) >> 8)
#define OM_GET_MIN (OM_VERSION && 0x000ff) #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; typedef unsigned int uint;
//============================================================================= //=============================================================================
#endif // OPENMESH_CONFIG_H defined #endif // OPENMESH_CONFIG_H defined