diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-07-24 22:18:59 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-07-24 22:18:59 +0000 |
commit | d1cfc560073dbe5bfcaa412b4fea16d6831e743e (patch) | |
tree | 0e16bde705966132ed40a77001e1c95414f84306 /converter/ppm/ppmtoilbm.c | |
parent | 6516daea481dab323982d3a2b2aa8baf6988829a (diff) | |
download | netpbm-mirror-d1cfc560073dbe5bfcaa412b4fea16d6831e743e.tar.gz netpbm-mirror-d1cfc560073dbe5bfcaa412b4fea16d6831e743e.tar.xz netpbm-mirror-d1cfc560073dbe5bfcaa412b4fea16d6831e743e.zip |
cleanup - declare qsort comparison routines as such
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1980 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ppmtoilbm.c')
-rw-r--r-- | converter/ppm/ppmtoilbm.c | 5 |
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) { |