* patches to make rrdtool compile on win32 (trunk and 1.4)
[rrdtool.git] / win32 / config.h
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 #include <ctype.h>
9
10 /* realloc does not support NULL as argument */
11
12 #define HAVE_STRFTIME 1
13 #define HAVE_TIME_H 1
14 #define HAVE_LOCALE_H 1
15 #define HAVE_TZSET 1
16 #define HAVE_SETLOCALE 1
17 #define HAVE_MATH_H 1
18 #define HAVE_FLOAT_H 1
19 #define HAVE_MEMMOVE 1
20 #define HAVE_MALLOC_H 1
21 #define HAVE_MKTIME 1
22 #define HAVE_STRFTIME 1
23 #define HAVE_STRING_H 1
24 #define HAVE_STDLIB_H 1
25 #define HAVE_VSNPRINTF 1
26 #define HAVE_SYS_TYPES_H 1
27 #define HAVE_SYS_STAT_H 1
28
29 /* Define to 1 if you have the ANSI C header files. */
30 #define STDC_HEADERS 1
31
32 #define NUMVERS 1.4030
33 #define PACKAGE_NAME "rrdtool"
34 #define PACKAGE_VERSION "1.4.3"
35 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION
36
37 #define isinf(a) (_fpclass(a) == _FPCLASS_NINF || _fpclass(a) == _FPCLASS_PINF)
38 #define isnan _isnan
39 #define finite _finite
40 #define snprintf _snprintf
41 //#define vsnprintf _vsnprintf
42 //#define strftime strftime_
43
44 #define NO_NULL_REALLOC 1
45 #if NO_NULL_REALLOC
46 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
47 #else
48 # define rrd_realloc(a,b) realloc((a), (b))
49 #endif
50
51 /* Vertical label angle: 90.0 (default) or 270.0 */
52 #define RRDGRAPH_YLEGEND_ANGLE 90.0
53
54 #define RRD_DEFAULT_FONT "Courier"
55
56 /* #define DEBUG 1 */
57
58 __inline int round(double a){int x = (a + 0.5); return x;}
59
60 #endif                          /* CONFIG_H */