about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pm.h2
-rw-r--r--lib/ppmdraw.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pm.h b/lib/pm.h
index 040a6a4b..9c3c087e 100644
--- a/lib/pm.h
+++ b/lib/pm.h
@@ -65,7 +65,7 @@ extern "C" {
 #ifdef __GNUC__
 #define PM_GNU_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
 #else
-#define PM_GNU_PRINTF_ATTR
+#define PM_GNU_PRINTF_ATTR(a,b)
 #endif
 
 
diff --git a/lib/ppmdraw.h b/lib/ppmdraw.h
index 9efe51b9..6a379573 100644
--- a/lib/ppmdraw.h
+++ b/lib/ppmdraw.h
@@ -59,7 +59,7 @@ typedef struct {
 
 
 
-typedef void ppmd_drawproc(pixel **, int, int, pixval, int, int, const void *);
+typedef void ppmd_drawproc(pixel ** const, int const, int const, pixval const, int const, int const, const void *const);
 
 ppmd_drawproc ppmd_point_drawproc;
 
@@ -274,7 +274,7 @@ ppmd_text(pixel**      const pixels,
           int          const height, 
           int          const angle, 
           const char * const sArg, 
-          void (*drawprocP)(pixel**, int, int, pixval, int, int, const void*), 
+	  ppmd_drawproc,
     const void*  const clientdata);
 /* Draws the null-terminated string 's' left justified at the point
    ('x', 'y').  The text will be 'height' pixels high and will be aligned on a