Browse Source

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
tags/v0.2.0
zwelch 13 years ago
parent
commit
4c71ca6b5f
3 changed files with 1 additions and 8 deletions
  1. +1
    -0
      configure.in
  2. +0
    -3
      src/helper/jim.c
  3. +0
    -5
      src/target/oocd_trace.c

+ 1
- 0
configure.in View File

@@ -851,6 +851,7 @@ if test "${has_environ}" != "yes" ; then
AC_MSG_FAILURE([Could not find 'environ' in unistd.h or available libraries.])
fi

AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).])

# set default gcc warnings
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"


+ 0
- 3
src/helper/jim.c View File

@@ -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>


+ 0
- 5
src/target/oocd_trace.c View File

@@ -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"



Loading…
Cancel
Save