[F] min/max redefined when including windows.h
authorsmalcom <smal.root@gmail.com>
Thu, 15 Sep 2016 19:25:34 +0000 (22:25 +0300)
committersmalcom <smal.root@gmail.com>
Thu, 15 Sep 2016 19:25:34 +0000 (22:25 +0300)
contrib/Open3DGC/o3dgcTimer.h

index 303d4f7..97f5759 100644 (file)
@@ -27,6 +27,8 @@ THE SOFTWARE.
 #include "o3dgcCommon.h"
 
 #ifdef WIN32
+/* Thank you, Microsoft, for file WinDef.h with min/max redefinition. */
+#define NOMINMAX
 #include <windows.h>
 #elif __MACH__
 #include <mach/clock.h>