diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 07:35:00 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 07:35:00 +0000 |
commit | 4c71ca6b5ffe6dfba24da7607212a38dc90a0141 (patch) | |
tree | f5e79260e99c5dfb64b08a943b3a2694079a5872 /src | |
parent | 61cba7e0e6dae78ff257bef546e6783c4b634ad4 (diff) | |
download | openocd+libswd-4c71ca6b5ffe6dfba24da7607212a38dc90a0141.tar.gz openocd+libswd-4c71ca6b5ffe6dfba24da7607212a38dc90a0141.tar.bz2 openocd+libswd-4c71ca6b5ffe6dfba24da7607212a38dc90a0141.tar.xz openocd+libswd-4c71ca6b5ffe6dfba24da7607212a38dc90a0141.zip |
Define _GNU_SOURCE in config.h, remove definitions from source files.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1757 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/jim.c | 3 | ||||
-rw-r--r-- | src/target/oocd_trace.c | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c index 9d49e871..5122615d 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -53,9 +53,6 @@ #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 dc96d13f..d54766ae 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -21,11 +21,6 @@ #include "config.h" #endif -// we must define _GNU_SOURCE to get strndup -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - #include "oocd_trace.h" #include "arm7_9_common.h" |