Fix 'token not a valid binary' error during initsecondarythread compilation
authorIvan Maidanski <ivmai@mail.ru>
Wed, 8 Mar 2017 03:23:24 +0000 (06:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 8 Mar 2017 03:23:24 +0000 (06:23 +0300)
(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
include/private/gcconfig.h

index 73b1a9d..2cb8915 100644 (file)
 # 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
index 3364acf..2bf4607 100644 (file)
 #   include <stddef.h>  /* 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.                                        */