From: Wolfgang Stöggl Date: Sun, 20 Jan 2019 21:11:34 +0000 (+0100) Subject: Include winsdkver.h for _WIN32_MAXVER X-Git-Tag: v1.7.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47e5d89db114c0c7618ca52dec2f56140f43416;p=thirdparty%2Frrdtool-1.x.git Include winsdkver.h for _WIN32_MAXVER - _WIN32_MAXVER is defined in winsdkver.h The include is required in case of MinGW-w64 builds - Fixes rrd_open.c:11:5: warning: "_WIN32_MAXVER" is not defined, evaluates to 0 [-Wundef] #if _WIN32_MAXVER >= 0x0602 /* _WIN32_WINNT_WIN8 */ --- diff --git a/src/rrd_open.c b/src/rrd_open.c index 9daee757..df2669af 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -8,6 +8,7 @@ #ifdef _WIN32 #include +#include /* Defines _WIN32_MAXVER */ #if _WIN32_MAXVER >= 0x0602 /* _WIN32_WINNT_WIN8 */ #include #endif