]> granicus.if.org Git - gc/commitdiff
2009-10-20 Ivan Maidanski <ivmai@mail.ru> (really Petter Urkedal)
authorivmai <ivmai>
Tue, 20 Oct 2009 21:21:16 +0000 (21:21 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:51 +0000 (21:06 +0400)
* dyn_load.c: Move the inclusion of private/gc_priv.h below
definition of a feature macro (_GNU_SOURCE).

ChangeLog
dyn_load.c

index 31f48f8147023c117a4c66387345741a3348c5c7..9549249434c0562749cb69c8af32b0aaeab8a079 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-20  Ivan Maidanski <ivmai@mail.ru> (really Petter Urkedal)
+
+       * dyn_load.c: Move the inclusion of private/gc_priv.h below
+       definition of a feature macro (_GNU_SOURCE).
+
 2009-10-20  Ivan Maidanski <ivmai@mail.ru>
 
        * include/gc.h (REVEAL_POINTER): Remove redundant parentheses.
index d7acb2f1b861f202b9c5474c8a8a3c317bcc6a8c..7cf9296197b22aaeca5025ab6e36e1cba54551be 100644 (file)
  * None of this is safe with dlclose and incremental collection.
  * But then not much of anything is safe in the presence of dlclose.
  */
-#include "private/gc_priv.h"
 
 #if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \
      && !defined(_GNU_SOURCE)
     /* Can't test LINUX, since this must be defined before other includes */
-#   define _GNU_SOURCE
+# define _GNU_SOURCE
 #endif
 
+#include "private/gc_priv.h"
+
 #if !defined(MACOS) && !defined(_WIN32_WCE)
-#  include <sys/types.h>
+# include <sys/types.h>
 #endif
 
 /* BTL: avoid circular redefinition of dlopen if GC_SOLARIS_THREADS defined */