2009-10-06 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Tue, 6 Oct 2009 16:16:01 +0000 (16:16 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:49 +0000 (21:06 +0400)
* include/gc_config_macros.h: Use old behavior for FreeBSD and
NetBSD platform detection code (check that other GC_xxx_THREADS
are undefined); add FIXME.

ChangeLog
include/gc_config_macros.h

index e1e8f45..5e24ab3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-10-06  Ivan Maidanski <ivmai@mail.ru>
 
+       * include/gc_config_macros.h: Use old behavior for FreeBSD and
+       NetBSD platform detection code (check that other GC_xxx_THREADS
+       are undefined); add FIXME.
+
+2009-10-06  Ivan Maidanski <ivmai@mail.ru>
+
        * include/gc_config_macros.h: Rearrange the platform detection
        code (GC_WIN32_PTHREADS implies GC_WIN32_THREADS; define
        GC_THREADS first if GC_XXX_THREADS already set; define proper
index 409f1b8..388ef43 100644 (file)
      || defined(sun) && (defined(i386) || defined(__i386__) \
                          || defined(__amd64__))
 #   define GC_SOLARIS_THREADS
-# endif
-# if defined(__APPLE__) && defined(__MACH__)
+# elif defined(__APPLE__) && defined(__MACH__)
 #   define GC_DARWIN_THREADS
-# endif
-# if defined(__FreeBSD__) || defined(__DragonFly__)
-#   define GC_FREEBSD_THREADS
-# endif
-# if defined(__NetBSD__)
-#   define GC_NETBSD_THREADS
+# elif !defined(GC_LINUX_THREADS) && !defined(GC_HPUX_THREADS) \
+       && !defined(GC_OSF1_THREADS) && !defined(GC_IRIX_THREADS)
+    /* FIXME: Should we really need for FreeBSD and NetBSD to check     */
+    /* that no other GC_xxx_THREADS macro is set?                       */
+#   if defined(__FreeBSD__) || defined(__DragonFly__)
+#     define GC_FREEBSD_THREADS
+#   elif defined(__NetBSD__)
+#     define GC_NETBSD_THREADS
+#   endif
 # endif
 # if defined(DGUX) && (defined(i386) || defined(__i386__))
 #   define GC_DGUX386_THREADS