core: use _GNU_SOURCE consistently

This commit is contained in:
Dan Williams 2009-04-21 18:29:25 -04:00
parent 641af69086
commit ba5a7024bd
4 changed files with 4 additions and 6 deletions

View file

@ -18,8 +18,6 @@
* Copyright (C) 2008 Red Hat, Inc.
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -18,8 +18,6 @@
* Copyright (C) 2007 - 2008 Red Hat, Inc.
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -434,6 +434,9 @@ else
AC_MSG_RESULT(no)
fi
# Define _GNU_SOURCE for various things like strcasestr()
CFLAGS="$CFLAGS -D_GNU_SOURCE"
GTK_DOC_CHECK(1.0)
dnl

View file

@ -22,8 +22,7 @@ test_crypto_SOURCES = \
test-crypto.c
test_crypto_CPPFLAGS = \
$(GLIB_CFLAGS) \
-D_GNU_SOURCE
$(GLIB_CFLAGS)
test_crypto_LDADD = \
$(GLIB_LIBS) \