From: oharboe Date: Mon, 27 Apr 2009 05:29:30 +0000 (+0000) Subject: Zach Welch wrap _GNU_SOURCE defines X-Git-Tag: v0.2.0~971 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70d80bba5aa9f7ba5d24625265ef549770f592c4;p=openocd Zach Welch wrap _GNU_SOURCE defines git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/helper/jim.c b/src/helper/jim.c index 28dc950d..bcea7c53 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -49,7 +49,9 @@ #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ #endif /* JIM_ANSIC */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* for vasprintf() */ +#endif #include #include #include diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c index 55ea67ca..e59c6203 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -21,7 +21,9 @@ #include "config.h" #endif +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include