/****************************************************************************
- * RRDtool 1.2.4 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.8 Copyright by Tobi Oetiker, 1997-2005
****************************************************************************
* rrd_afm.h Parsing afm tables to find width of strings.
****************************************************************************/
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#include "../confignt/config.h"
#else
#include "config.h"
#include <string.h>
#endif
+#include "unused.h"
+
#if 0
# define DEBUG 1
# define DLOG(x) fprintf x
p = afm_searchfont(RRD_AFM_DEFAULT_FONT);
if (p)
return p;
- return afm_fontinfolist; // anything, just anything.
+ return afm_fontinfolist; /* anything, just anything. */
}
const char *afm_get_font_postscript_name(const char* font)
}
/* measure width of a text string */
-double afm_get_text_width ( double start, const char* font, double size,
- double tabwidth, const char* text)
+double afm_get_text_width ( double UNUSED(start), const char* font, double size,
+ double UNUSED(tabwidth), const char* text)
{
const afm_fontinfo *fontinfo = afm_findfont(font);
long width = 0;