Commit 70d80bba authored by oharboe's avatar oharboe
Browse files

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

git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent b0acd785
......@@ -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>
......
......@@ -21,7 +21,9 @@
#include "config.h"
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <string.h>
#include <errno.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment