From df983bfa5256e40c0c1c9226a4b65ad73cb4d22b Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 4 Dec 2008 17:49:30 +0000 Subject: Make -ansi compile work git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@781 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- analyzer/pamtilt.c | 2 ++ converter/other/pgmtoppm.c | 1 + converter/other/svgtopam.c | 1 + doc/HISTORY | 2 ++ editor/pnmmontage.c | 1 + editor/ppmcolormask.c | 1 + other/pamx/pamx.c | 1 + 7 files changed, 9 insertions(+) diff --git a/analyzer/pamtilt.c b/analyzer/pamtilt.c index 37b6c394..2aa65df8 100644 --- a/analyzer/pamtilt.c +++ b/analyzer/pamtilt.c @@ -10,6 +10,8 @@ All work has been contributed to the public domain by its authors. =============================================================================*/ +#define _XOPEN_SOURCE /* get M_PI in math.h */ + #include #include diff --git a/converter/other/pgmtoppm.c b/converter/other/pgmtoppm.c index cface024..12bc7d25 100644 --- a/converter/other/pgmtoppm.c +++ b/converter/other/pgmtoppm.c @@ -10,6 +10,7 @@ ** implied warranty. */ +#define _BSD_SOURCE /* Make sure strdup() is in */ #include #include "mallocvar.h" diff --git a/converter/other/svgtopam.c b/converter/other/svgtopam.c index 896c5f03..56825a4e 100644 --- a/converter/other/svgtopam.c +++ b/converter/other/svgtopam.c @@ -26,6 +26,7 @@ ============================================================================*/ +#define _BSD_SOURCE /* Make sure strdup() is in */ #include #include #include diff --git a/doc/HISTORY b/doc/HISTORY index e640555a..ea54643a 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -33,6 +33,8 @@ not yet BJH Release 10.45.00 Build: Rename Makefile.common, Makefile.config, to common.mk, etc. + Build: Add source type declarations to make -ansi compile work. + 08.09.27 BJH Release 10.44.00 Add pngtopam as a replacement for pngtopnm. Has ability diff --git a/editor/pnmmontage.c b/editor/pnmmontage.c index a7b74510..4ccff497 100644 --- a/editor/pnmmontage.c +++ b/editor/pnmmontage.c @@ -10,6 +10,7 @@ * implied warranty. */ +#define _BSD_SOURCE /* Make sure strdup() is in */ #include #include #include diff --git a/editor/ppmcolormask.c b/editor/ppmcolormask.c index eed64c19..0d7a214c 100644 --- a/editor/ppmcolormask.c +++ b/editor/ppmcolormask.c @@ -9,6 +9,7 @@ Contributed to the public domain by its author. =========================================================================*/ +#define _BSD_SOURCE /* Make sure strdup() is in */ #include #include diff --git a/other/pamx/pamx.c b/other/pamx/pamx.c index 49aa07c9..de390098 100644 --- a/other/pamx/pamx.c +++ b/other/pamx/pamx.c @@ -3,6 +3,7 @@ Copyright information is in the file COPYRIGHT */ +#define _BSD_SOURCE /* Make sure strdup() is in */ #include #include #include -- cgit 1.4.1