diff --git a/src/OpenMesh/Core/System/config.h b/src/OpenMesh/Core/System/config.h index fd309b39..fc7bfdcd 100644 --- a/src/OpenMesh/Core/System/config.h +++ b/src/OpenMesh/Core/System/config.h @@ -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