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:
parent
b0acd78511
commit
70d80bba5a
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue