Zach Welch <zw@superlucidity.net> wrap _GNU_SOURCE defines

git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe 2009-04-27 05:29:30 +00:00
parent b0acd78511
commit 70d80bba5a
2 changed files with 4 additions and 0 deletions

View File

@ -49,7 +49,9 @@
#define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */
#endif /* JIM_ANSIC */ #endif /* JIM_ANSIC */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for vasprintf() */ #define _GNU_SOURCE /* for vasprintf() */
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -21,7 +21,9 @@
#include "config.h" #include "config.h"
#endif #endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
#endif
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>