]> granicus.if.org Git - libexpat/commitdiff
xmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77)
authorSebastian Pipping <sebastian@pipping.org>
Wed, 12 Jul 2017 19:09:39 +0000 (21:09 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 12 Jul 2017 19:09:39 +0000 (21:09 +0200)
expat/Changes
expat/lib/xmlparse.c

index e8be7c4e1a15ea973377660093c0ec1135689be5..03cd374768ee7331209729ca962a501a8963d607 100644 (file)
@@ -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
index 9f121a683ee83032b3829a8863eb30269c0ce7db..ae913191fa6666ad18762784afa6d7f3bb45b388 100644 (file)
@@ -4,7 +4,9 @@
    cd4063469a95eab9a93001afb109e3dee122cdda4635bbec36257fc01c327348 (2.2.2+)
 */
 
-#define _GNU_SOURCE                     /* syscall prototype */
+#if !defined(_GNU_SOURCE)
+# define _GNU_SOURCE                    /* syscall prototype */
+#endif
 
 #include <stddef.h>
 #include <string.h>                     /* memset(), memcpy() */