From: Sebastian Pipping Date: Wed, 12 Jul 2017 19:09:39 +0000 (+0200) Subject: xmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77) X-Git-Tag: R_2_2_2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8bd51b5a34b487bb5a0b5ade44eae8073ede0c0;p=libexpat xmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77) --- diff --git a/expat/Changes b/expat/Changes index e8be7c4e..03cd3747 100644 --- a/expat/Changes +++ b/expat/Changes @@ -35,6 +35,7 @@ Release 2.2.2 Wed July 12 2017 with multipe CMakeLists.txt files #72 CMake: Resolve mistaken executable permissions #76 Address compile warning with -DNDEBUG (not recommended!) + #77 Address compile warning about macro redefinition Special thanks to: Alexander Bluhm diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 9f121a68..ae913191 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -4,7 +4,9 @@ cd4063469a95eab9a93001afb109e3dee122cdda4635bbec36257fc01c327348 (2.2.2+) */ -#define _GNU_SOURCE /* syscall prototype */ +#if !defined(_GNU_SOURCE) +# define _GNU_SOURCE /* syscall prototype */ +#endif #include #include /* memset(), memcpy() */