From: Wolfgang Stöggl Date: Wed, 11 Oct 2017 19:47:22 +0000 (+0200) Subject: Define HAVE_UINTPTR_T in rrd_config.h for Windows X-Git-Tag: v1.7.1~96^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F834%2Fhead;p=thirdparty%2Frrdtool-1.x.git Define HAVE_UINTPTR_T in rrd_config.h for Windows - Fixes compilation error, when building for x64 under Windows (MSVC): ./src\rrd_snprintf.c(901): warning C4311: 'type cast': pointer truncation from 'const char *' to 'unsigned long' - uintptr_t is a defined standard type in Visual Studio: https://msdn.microsoft.com/en-us/library/323b6b3k.aspx --- diff --git a/win32/rrd_config.h b/win32/rrd_config.h index cc560521..18e3ed05 100644 --- a/win32/rrd_config.h +++ b/win32/rrd_config.h @@ -94,6 +94,9 @@ /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 +/* Define to 1 if you have the `uniptr_t' standard type. */ +#define HAVE_UINTPTR_T 1 + /* Misc Missing Windows defines */ #undef PATH_MAX /* PATH_MAX is defined in win32/dirent.h too. Relevant, if included before rrd_config.h */ #define PATH_MAX 1024