Commit 395c40f4 authored by Jan Möbius's avatar Jan Möbius

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
parent 6d68f1f6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment