From: ivmai Date: Tue, 6 Oct 2009 16:16:01 +0000 (+0000) Subject: 2009-10-06 Ivan Maidanski X-Git-Tag: gc7_2alpha4~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=698dc8b6f513f1cb06d23a64da8218fa31941c61;p=platform%2Fupstream%2Flibgc.git 2009-10-06 Ivan Maidanski * 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. --- diff --git a/ChangeLog b/ChangeLog index e1e8f45..5e24ab3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-10-06 Ivan Maidanski + * 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 + * 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 diff --git a/include/gc_config_macros.h b/include/gc_config_macros.h index 409f1b8..388ef43 100644 --- a/include/gc_config_macros.h +++ b/include/gc_config_macros.h @@ -89,15 +89,17 @@ || 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