diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-01 20:56:15 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-01 20:56:15 +0000 |
commit | 9184208ec40610f6856907fa00d814ae093d3e3b (patch) | |
tree | 8566240342f5d4e935e1953f4932906dcadd13e7 /other/pnmcolormap.c | |
parent | 1ef976008e8a31d952047e7585b28e324c2e1f7b (diff) | |
download | netpbm-mirror-9184208ec40610f6856907fa00d814ae093d3e3b.tar.gz netpbm-mirror-9184208ec40610f6856907fa00d814ae093d3e3b.tar.xz netpbm-mirror-9184208ec40610f6856907fa00d814ae093d3e3b.zip |
Fix multiple function definitions for Irix compiler
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@81 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pnmcolormap.c')
-rw-r--r-- | other/pnmcolormap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/other/pnmcolormap.c b/other/pnmcolormap.c index c4776001..1be54ef8 100644 --- a/other/pnmcolormap.c +++ b/other/pnmcolormap.c @@ -25,6 +25,7 @@ #include <math.h> +#include "pm_config.h" #include "pam.h" #include "pammap.h" #include "shhopt.h" @@ -166,10 +167,10 @@ parseCommandLine (int argc, char ** argv, } -typedef int qsort_comparison_fn(const void *, const void *); - /* A collation function to be used as argument to qsort() */ +#ifndef LITERAL_FN_DEF_MATCH static qsort_comparison_fn compareplane; +#endif static unsigned int compareplanePlane; /* This is a parameter to compareplane(). We use this global variable @@ -189,7 +190,9 @@ compareplane(const void * const arg1, +#ifndef LITERAL_FN_DEF_MATCH static qsort_comparison_fn sumcompare; +#endif static int sumcompare(const void * const b1, const void * const b2) { |