Code

more win32 fixes by guenter knauf
[rrdtool.git] / win32 / rrd_config.h.msvc
1 /* rrd_config.h.msvc. Hand-tweaked rrd_config.h for MSVC compiler. */
2 #ifndef _WIN32 
3 #error This rrd_config.h is created for Win32 platform! 
4 #endif 
5 #ifndef RRD_CONFIG_H
6 #define RRD_CONFIG_H
8 /* the placeholders will be filled in by get_ver.awk */
9 /* http://cm.bell-labs.com/cm/cs/awkbook/index.html */
10 #define NUMVERS @@NUMVERS@@
11 #define PACKAGE_VERSION "@@PACKAGE_VERSION@@"
13 #define PACKAGE_NAME "rrdtool"
14 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION
16 #define HAVE_STRFTIME 1
17 #define HAVE_TIME_H 1
18 #define HAVE_LOCALE_H 1
19 #define HAVE_TZSET 1
20 #define HAVE_SETLOCALE 1
21 #define HAVE_MATH_H 1
22 #define HAVE_FLOAT_H 1
23 #define HAVE_MEMMOVE 1
24 #define HAVE_MALLOC_H 1
25 #define HAVE_MKTIME 1
26 #define HAVE_STRFTIME 1
27 #define HAVE_STRING_H 1
28 #define HAVE_VSNPRINTF 1
29 #define HAVE_SYS_TYPES_H 1
30 #define HAVE_SYS_STAT_H 1
32 /* Define to 1 if you have the ANSI C header files. */
33 #define STDC_HEADERS 1
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 strcasecmp stricmp
41 #define strftime strftime_ 
43 /* realloc does not support NULL as argument */
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      
51 /* Vertical label angle: 90.0 (default) or 270.0 */
52 #define RRDGRAPH_YLEGEND_ANGLE 90.0
54 #define RRD_DEFAULT_FONT "arial.ttf"
55 /* #define RRD_DEFAULT_FONT "DejaVuSansMono-Roman.ttf" */
57 /* #define WITH_PIECHART 1 */
59 /* #define DEBUG 1 */
61 #endif /* RRD_CONFIG_H */