From 22a38b7c392e4396989e0147524467a402db731a Mon Sep 17 00:00:00 2001 From: bel Date: Mon, 7 Sep 2015 19:25:31 +0200 Subject: [PATCH] MinGW: include _mingw.h, to access mingw version defines --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.c b/src/main.c index 2f2da0cd..24f70080 100644 --- a/src/main.c +++ b/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;