1 /* config.h.msvc. Hand-tweaked config.h for MSVC compiler. */
2 #ifndef CONFIG_H
3 #define CONFIG_H
5 #include <math.h>
6 #include <float.h>
7 #include <direct.h>
9 /* realloc does not support NULL as argument */
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_STDLIB_H 1
24 #define HAVE_VSNPRINTF 1
25 #define HAVE_SYS_TYPES_H 1
26 #define HAVE_SYS_STAT_H 1
28 /* Define to 1 if you have the ANSI C header files. */
29 #define STDC_HEADERS 1
31 #define NUMVERS 1.3020
32 #define PACKAGE_NAME "rrdtool"
33 #define PACKAGE_VERSION "1.3.2"
34 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION
36 #define isinf(a) (_fpclass(a) == _FPCLASS_NINF || _fpclass(a) == _FPCLASS_PINF)
37 #define isnan _isnan
38 #define finite _finite
39 #define snprintf _snprintf
40 //#define vsnprintf _vsnprintf
41 //#define strftime strftime_
43 #define NO_NULL_REALLOC 1
44 #if NO_NULL_REALLOC
45 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
46 #else
47 # define rrd_realloc(a,b) realloc((a), (b))
48 #endif
50 /* Vertical label angle: 90.0 (default) or 270.0 */
51 #define RRDGRAPH_YLEGEND_ANGLE 90.0
53 #define RRD_DEFAULT_FONT "Courier"
55 /* #define DEBUG 1 */
57 #endif /* CONFIG_H */