diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-07-25 15:27:22 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-07-25 15:27:22 +0000 |
commit | ee7ca90d04b4427ae7a9c940dbc2243f0746d04d (patch) | |
tree | ff0649b2d2ea8d1643789770fe563f106bc3cdc1 | |
parent | 2096d552041fff92edef9ec3a6a5a6c63d210287 (diff) | |
download | netpbm-mirror-ee7ca90d04b4427ae7a9c940dbc2243f0746d04d.tar.gz netpbm-mirror-ee7ca90d04b4427ae7a9c940dbc2243f0746d04d.tar.xz netpbm-mirror-ee7ca90d04b4427ae7a9c940dbc2243f0746d04d.zip |
Release 10.63.02
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1994 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | doc/HISTORY | 5 | ||||
-rw-r--r-- | lib/util/vasprintf.c | 7 | ||||
-rw-r--r-- | pm_config.in.h | 31 |
3 files changed, 13 insertions, 30 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 422633bb..850e8dcd 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,11 @@ Netpbm. CHANGE HISTORY -------------- +13.07.25 BJH Release 10.63.02 + + libnetpbm, pnmpsnr, ppmcie on Mac OS X: fix bogus printing of + floating point numbers. + 13.07.04 BJH Release 10.63.01 pngtopam: fix bug: ignores -gamma. Introduced in 10.48 diff --git a/lib/util/vasprintf.c b/lib/util/vasprintf.c index 9cfd0618..a41cd7b5 100644 --- a/lib/util/vasprintf.c +++ b/lib/util/vasprintf.c @@ -5,13 +5,10 @@ #include <stdlib.h> #include <string.h> +#include "pm_config.h" #include "nstring.h" -#if (defined(__GLIBC__) || defined(__GNU_LIBRARY__)) - #define HAVE_VASPRINTF 1 -#else - #define HAVE_VASPRINTF 0 -#endif + void pm_vasprintf(const char ** const resultP, diff --git a/pm_config.in.h b/pm_config.in.h index d8e578a3..9459be02 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -99,31 +99,6 @@ #if defined(SYSV) #include <malloc.h> #endif -/* extern char* malloc(); */ -/* extern char* realloc(); */ -/* extern char* calloc(); */ - -/* CONFIGURE: Some systems don't have vfprintf(), which we need for the -** error-reporting routines. If you compile and get a link error about -** this routine, uncomment the first define, which gives you a vfprintf -** that uses the theoretically non-portable but fairly common routine -** _doprnt(). If you then get a link error about _doprnt, or -** message-printing doesn't look like it's working, try the second -** define instead. -*/ -/* #define NEED_VFPRINTF1 */ -/* #define NEED_VFPRINTF2 */ - -/* CONFIGURE: Some systems don't have strstr(), which some routines need. -** If you compile and get a link error about this routine, uncomment the -** define, which gives you a strstr. -*/ -/* #define NEED_STRSTR */ - -/* CONFIGURE: Set this option if your compiler uses strerror(errno) -** instead of sys_errlist[errno] for error messages. -*/ -#define A_STRERROR /* MSVCRT means we're using the Microsoft Visual C++ runtime library. @@ -161,6 +136,12 @@ /* #define HAVE_SETMODE */ +#if (defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__APPLE__)) + #define HAVE_VASPRINTF 1 +#else + #define HAVE_VASPRINTF 0 +#endif + #ifdef __amigaos__ #include <clib/exec_protos.h> #define getpid() ((pid_t)FindTask(NULL)) |