blueloveTH 2 лет назад
Родитель
Сommit
a3d4e66958
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      include/pocketpy/export.h

+ 3 - 1
include/pocketpy/export.h

@@ -37,7 +37,9 @@
 #define NOMB              // MB_* and MessageBox()
 #define NOMEMMGR          // GMEM_*, LMEM_*, GHND, LHND, associated routines
 #define NOMETAFILE        // typedef METAFILEPICT
-#define NOMINMAX          // Macros min(a,b) and max(a,b)
+#ifndef NOMINMAX
+    #define NOMINMAX          // Macros min(a,b) and max(a,b)
+#endif
 #define NOMSG             // typedef MSG and associated routines
 #define NOOPENFILE        // OpenFile(), OemToAnsi, AnsiToOem, and OF_*
 #define NOSCROLL          // SB_* and scrolling routines