From 1edff47af38a2335f88300ee6dc437118f5a20ff Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Thu, 14 Mar 2013 21:34:11 +0100 Subject: [PATCH] Do not define _GNU_SOURCE is already defined --- src/dump.c | 3 +++ src/load.c | 3 +++ src/strbuffer.c | 3 +++ src/value.c | 2 ++ 4 files changed, 11 insertions(+) diff --git a/src/dump.c b/src/dump.c index d87d5c7..eb596aa 100644 --- a/src/dump.c +++ b/src/dump.c @@ -5,7 +5,10 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include #include #include diff --git a/src/load.c b/src/load.c index d60a93e..8ec57ba 100644 --- a/src/load.c +++ b/src/load.c @@ -5,7 +5,10 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include #include #include diff --git a/src/strbuffer.c b/src/strbuffer.c index b9190c2..d429c91 100644 --- a/src/strbuffer.c +++ b/src/strbuffer.c @@ -5,7 +5,10 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include #include #include "jansson_private.h" diff --git a/src/value.c b/src/value.c index d0517d5..74e8064 100644 --- a/src/value.c +++ b/src/value.c @@ -5,7 +5,9 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include