layers: Fix windows build issue with drawstate merge requests
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index f90fe78..01c9a56 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -26,8 +26,12 @@
  * Author: Tobin Ehlis <tobine@google.com>
  * Author: Chia-I Wu <olv@google.com>
  * Author: Chris Forbes <chrisf@ijw.co.nz>
+ * Author: Mark Lobodzinski <mark@lunarg.com>
  */
 
+// Allow use of STL min and max functions in Windows
+#define NOMINMAX
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>