1 /* config.h.msvc. Hand-tweaked config.h for MSVC compiler. */ 2 #ifndef CONFIG_H 3 #define CONFIG_H 4 5 #include <math.h> 6 #include <float.h> 7 #include <direct.h> 8 9 /* realloc does not support NULL as argument */ 10 11 #define HAVE_STRFTIME 1 12 #define HAVE_TIME_H 1 13 #define HAVE_LOCALE_H 1 14 #define HAVE_TZSET 1 15 #define HAVE_SETLOCALE 1 16 #define HAVE_MATH_H 1 17 #define HAVE_FLOAT_H 1 18 #define HAVE_MEMMOVE 1 19 #define HAVE_MALLOC_H 1 20 #define HAVE_MKTIME 1 21 #define HAVE_STRFTIME 1 22 #define HAVE_STRING_H 1 23 #define HAVE_VSNPRINTF 1 24 #define HAVE_SYS_TYPES_H 1 25 #define HAVE_SYS_STAT_H 1 26 27 /* Define to 1 if you have the ANSI C header files. */ 28 #define STDC_HEADERS 1 29 30 #define NUMVERS 1.2015 31 #define PACKAGE_NAME "rrdtool" 32 #define PACKAGE_VERSION "1.2.15" 33 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION 34 35 #define isinf(a) (_fpclass(a) == _FPCLASS_NINF || _fpclass(a) == _FPCLASS_PINF) 36 #define isnan _isnan 37 #define finite _finite 38 #define snprintf _snprintf 39 #define vsnprintf _vsnprintf 40 #define strftime strftime_ 41 42 #define NO_NULL_REALLOC 1 43 #if NO_NULL_REALLOC 44 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) )) 45 #else 46 # define rrd_realloc(a,b) realloc((a), (b)) 47 #endif 48 49 /* Vertical label angle: 90.0 (default) or 270.0 */ 50 #define RRDGRAPH_YLEGEND_ANGLE 90.0 51 52 #define RRD_DEFAULT_FONT "arial.ttf" 53 /* #define RRD_DEFAULT_FONT "DejaVuSansMono-Roman.ttf" */ 54 55 /* #define WITH_PIECHART 1 */ 56 57 /* #define DEBUG 1 */ 58 59 #endif /* CONFIG_H */ 60 61