diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-18 18:29:13 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-18 18:29:13 +0000 |
commit | 2fc96d4928baccbdf7d52eca57b967f4c5355d8e (patch) | |
tree | ee9076375b75ec179576a3a39c4b0bda56771048 /pm_config.in.h | |
parent | b31e75a79a6f096f3462292fd48494035f0be0fe (diff) | |
download | netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.gz netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.xz netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.zip |
Release 10.35.08
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@90 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r-- | pm_config.in.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pm_config.in.h b/pm_config.in.h index 9fc55351..1956f5d3 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -222,6 +222,26 @@ extern int write(); #endif #endif +/* At least one compiler can't handle two declarations of the same function + that aren't literally identical. E.g. "static foo_fn_t foo1;" conflicts + with "static void foo1(int);" even if type 'foo_fn_t' is defined as + void(int). (The compiler we saw do this is SGI IDO cc (for IRIX 4.3)). + + LITERAL_FN_DEF_MATCH says that the compiler might have this problem, + so one must be conservative in redeclaring functions. +*/ +#if defined(__GNUC__) + #define LITERAL_FN_DEF_MATCH 0 +#else + #if (defined(__sgi)) + #define LITERAL_FN_DEF_MATCH 1 + #else + #define LITERAL_FN_DEF_MATCH 0 + #endif +#endif + + + /* CONFIGURE: Some systems seem to need more than standard program linkage to get a data (as opposed to function) item out of a library. @@ -276,3 +296,5 @@ typedef long int pm_filepos; #define HAVE_MKSTEMP 1 #endif +typedef int qsort_comparison_fn(const void *, const void *); + /* A compare function to pass to <stdlib.h>'s qsort() */ |