Pārlūkot izejas kodu

MinGW: include _mingw.h, to access mingw version defines

bel 10 gadi atpakaļ
vecāks
revīzija
22a38b7c39
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      src/main.c

+ 7 - 0
src/main.c

@@ -732,6 +732,13 @@ static int run_lua(const char *file_name)
 }
 #endif
 
+
+#if defined(__MINGW32__) || defined(__MINGW64__)
+/* For __MINGW32/64_MAJOR/MINOR_VERSION define */
+#include <_mingw.h>
+#endif
+
+
 static void start_civetweb(int argc, char *argv[])
 {
 	struct mg_callbacks callbacks;