From 68d25bc53bb5215d86736998ceb26b7692dc2b2e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 8 Mar 2017 06:23:24 +0300 Subject: [PATCH] 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). --- include/private/gc_priv.h | 8 -------- include/private/gcconfig.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 73b1a9d..2cb8915 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 3364acf..2bf4607 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. */ -- 2.7.4