about summary refs log tree commit diff
path: root/converter/ppm
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm')
-rw-r--r--converter/ppm/ppmtoilbm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/converter/ppm/ppmtoilbm.c b/converter/ppm/ppmtoilbm.c
index 69784b37..c861163f 100644
--- a/converter/ppm/ppmtoilbm.c
+++ b/converter/ppm/ppmtoilbm.c
@@ -354,7 +354,6 @@ do_ham_body     ARGS((FILE *ifP, FILE *ofp, int cols, int rows, pixval maxval,
                 pixval hammaxval, int nPlanes, pixel *cmap, int colors));
 
 
-static int hcmp (const void *va, const void *vb);
 static pixel *compute_ham_cmap ARGS((int cols, int rows, int maxval, 
                                      int maxcolors, int *colorsP, int hbits));
 
@@ -365,6 +364,10 @@ typedef struct {
 } hentry;
 
 
+#ifndef LITERAL_FN_DEF_MATCH
+static qsort_comparison_fn hcmp;
+#endif
+
 static int
 hcmp(const void *va, const void *vb)
 {