X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=confignt%2Fconfig.h;h=9ffb77ea7a59404371ebf737aaac5f96637a21ed;hb=0c87c2676bb826f8defb40d7d45e771ecd40550c;hp=f31bba14847b7b8b30ef5d13504c80ffbcc7250c;hpb=3c6f40dc07acfbcb48480e4b3153a5f42f6e96fe;p=rrdtool.git diff --git a/confignt/config.h b/confignt/config.h index f31bba1..9ffb77e 100644 --- a/confignt/config.h +++ b/confignt/config.h @@ -14,6 +14,12 @@ #define rrd_realloc(a,b) realloc((a), (b)) #define snprintf _snprintf - -/* change this to %windir%/fonts */ -#define RRD_DEFAULT_FONT "c:/winnt/fonts/cour.ttf" +/* Code in rrd_graph.c:rrd_graph_init() uses the %windir% + * environment variable to override this. This should + * avoid the recompile problem if the system directory is + * c:/windows vs. d:/winnt. + * This #define can't be removed because: + * (1) the constant is used outside of rrd_graph_init() to init a struct + * (2) windir might not be available in all environments + */ +#define RRD_DEFAULT_FONT "c:/windows/fonts/cour.ttf"