diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-27 05:29:30 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-27 05:29:30 +0000 |
commit | 70d80bba5aa9f7ba5d24625265ef549770f592c4 (patch) | |
tree | 61dbda42f47e4a091cf3239027b343ca56ce26d7 /src | |
parent | b0acd7851194fd37287e10f5d07d7f8206369cdf (diff) | |
download | openocd+libswd-70d80bba5aa9f7ba5d24625265ef549770f592c4.tar.gz openocd+libswd-70d80bba5aa9f7ba5d24625265ef549770f592c4.tar.bz2 openocd+libswd-70d80bba5aa9f7ba5d24625265ef549770f592c4.tar.xz openocd+libswd-70d80bba5aa9f7ba5d24625265ef549770f592c4.zip |
Zach Welch <zw@superlucidity.net> wrap _GNU_SOURCE defines
git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/jim.c | 2 | ||||
-rw-r--r-- | src/target/oocd_trace.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> 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 <string.h> #include <errno.h> |