swr: [rasterizer common] don't bleed NOMINMAX definition after <windows.h>
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 7 Nov 2016 22:11:45 +0000 (16:11 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 14 Nov 2016 15:02:53 +0000 (09:02 -0600)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/os.h

index ac52b605cc202a036aa342dba7493ec966be2e2f..28e7ff54f96852db3dca1388bc03f9b0d249ea75 100644 (file)
 
 #ifndef NOMINMAX
 #define NOMINMAX
-#endif
 #include <windows.h>
+#undef NOMINMAX
+#else
+#include <windows.h>
+#endif
 #include <intrin.h>
 #include <cstdint>