From: sts Date: Wed, 16 Apr 2008 08:57:12 +0000 (+0200) Subject: Avoid redefined warnings caused by clashing defines. X-Git-Tag: v1.13~421^2~12^2~28^2~37 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=3b3c7db8df9fef1712922883133bc552d90ebd70 Avoid redefined warnings caused by clashing defines. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6ca006d7..d62ebcbe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-04-16 Steven Schubiger + + * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE + out, because they're now defined independently by config.h. + 2008-04-14 Steven Schubiger * http.c: Use Gnulib's quote function for printing filenames and diff --git a/src/sysdep.h b/src/sysdep.h index ec50e045..84301b78 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -68,7 +68,7 @@ as that of the covered work. */ /* For Solaris: request everything else that is available and doesn't conflict with the above. */ -#define __EXTENSIONS__ +/* #define __EXTENSIONS__ */ /* XXX clashes with config.h */ /* For Linux: request features of 4.3BSD and SVID (System V Interface Definition). */ @@ -78,7 +78,7 @@ as that of the covered work. */ /* Under glibc-based systems we want all GNU extensions as well. This declares some unnecessary cruft, but also useful functions such as timegm, FNM_CASEFOLD extension to fnmatch, memrchr, etc. */ -#define _GNU_SOURCE +/* #define _GNU_SOURCE */ /* XXX clashes with config.h */ #endif /* NAMESPACE_TWEAKS */