From: Ivan Maidanski Date: Wed, 8 Mar 2017 03:23:24 +0000 (+0300) Subject: Fix 'token not a valid binary' error during initsecondarythread compilation X-Git-Tag: v8.0.0~877 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68d25bc53bb5215d86736998ceb26b7692dc2b2e;p=gc Fix 'token not a valid binary' error during initsecondarythread compilation (fix commit 4f98587) * include/private/gc_priv.h (GC_CLANG_PREREQ): Remove. * include/private/gcconfig.h (GC_CLANG_PREREQ): Define (moved from gc_priv.h). --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 73b1a9da..2cb89155 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -70,14 +70,6 @@ # endif #endif -/* Convenient internal macro to test version of Clang. */ -#if defined(__clang__) && defined(__clang_major__) -# define GC_CLANG_PREREQ(major, minor) \ - ((__clang_major__ << 16) + __clang_minor__ >= ((major) << 16) + (minor)) -#else -# define GC_CLANG_PREREQ(major, minor) 0 /* FALSE */ -#endif - #ifndef GC_TINY_FL_H # include "../gc_tiny_fl.h" #endif diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 3364acfe..2bf4607b 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -32,6 +32,14 @@ # include /* For size_t etc. */ # endif +/* Convenient internal macro to test version of Clang. */ +#if defined(__clang__) && defined(__clang_major__) +# define GC_CLANG_PREREQ(major, minor) \ + ((__clang_major__ << 16) + __clang_minor__ >= ((major) << 16) + (minor)) +#else +# define GC_CLANG_PREREQ(major, minor) 0 /* FALSE */ +#endif + /* Machine dependent parameters. Some tuning parameters can be found */ /* near the top of gc_private.h. */