From: ivmai Date: Thu, 21 Apr 2011 15:20:00 +0000 (+0000) Subject: 2011-04-21 Ivan Maidanski X-Git-Tag: gc7_2alpha6~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=869247753c89e4fc54121343396e01d4fb9dd08d;p=gc 2011-04-21 Ivan Maidanski * include/private/gc_priv.h (_GNU_SOURCE): Revert one of the recent patches regarding this macro as the macro should be set (to 1) before including any other system header. --- diff --git a/ChangeLog b/ChangeLog index caad631c..80f1b0cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-21 Ivan Maidanski + + * include/private/gc_priv.h (_GNU_SOURCE): Revert one of the + recent patches regarding this macro as the macro should be set + (to 1) before including any other system header. + 2011-04-21 Ivan Maidanski * doc/README.environment (GC_INITIAL_HEAP_SIZE, diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index b1bb9c78..9d97e327 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -26,15 +26,11 @@ # define GC_BUILD #endif -#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) +#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \ + && !defined(_GNU_SOURCE) /* Can't test LINUX, since this must be defined before other includes. */ -# if !defined(__native_client__) -# include -# endif -# ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -# endif -#endif /* __linux__ */ +# define _GNU_SOURCE 1 +#endif #if (defined(DGUX) && defined(GC_THREADS) || defined(DGUX386_THREADS) \ || defined(GC_DGUX386_THREADS)) && !defined(_USING_POSIX4A_DRAFT10)