Fix detection of the GC version.
authorLudovic Courtès <ludo@gnu.org>
Sun, 14 Sep 2008 20:07:34 +0000 (22:07 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 14 Sep 2008 20:07:34 +0000 (22:07 +0200)
* libguile/boehm-gc.h: Don't expect `GC_VERSION_MAJOR' to be defined,
  as it's defined only since 7.x.

libguile/boehm-gc.h

index ea8ad51..708f17b 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <gc/gc.h>
 
-#if (defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR < 7)
+#if (! ((defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >= 7)))
 /* This was needed with `libgc' 6.x.  */
 # include <gc/gc_local_alloc.h>
 #endif