From 976580517099fe477acbf1ca379716a7a329fb19 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Sat, 5 Jun 2010 17:30:13 -0700 Subject: [PATCH] trivial fixes --- config.h.in | 4 ++++ lib/gfxpoly/poly.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 9f122a0..60bf322 100644 --- a/config.h.in +++ b/config.h.in @@ -277,6 +277,10 @@ #endif #endif +#ifndef WIN32 +#define CHECKS +#endif + // supply a substitute calloc function if necessary #ifndef HAVE_CALLOC #define calloc rfx_calloc_replacement diff --git a/lib/gfxpoly/poly.c b/lib/gfxpoly/poly.c index cc383b8..71a743b 100644 --- a/lib/gfxpoly/poly.c +++ b/lib/gfxpoly/poly.c @@ -325,7 +325,7 @@ void gfxpoly_save_arrows(gfxpoly_t*poly, const char*filename) double g = poly->gridsize; gfxpolystroke_t*stroke = poly->strokes; for(;stroke;stroke=stroke->next) { - fprintf(fi, "%g setgray\n", 0); + fprintf(fi, "0 setgray\n"); int s = stroke->dir==DIR_UP?stroke->num_points-1:0; int end = stroke->dir==DIR_UP?-1:stroke->num_points; -- 1.7.10.4