]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Define HAVE_UINTPTR_T in rrd_config.h for Windows 834/head
authorWolfgang Stöggl <c72578@yahoo.de>
Wed, 11 Oct 2017 19:47:22 +0000 (21:47 +0200)
committerWolfgang Stöggl <c72578@yahoo.de>
Wed, 11 Oct 2017 19:47:22 +0000 (21:47 +0200)
- 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

win32/rrd_config.h

index cc56052187b7379f299a16a997e6ce284871148c..18e3ed05184bf587ef9b16aac2f8a54420654b55 100644 (file)
@@ -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