From 1a80d7bcdaa9a57f0feaf0a14ced8c9fb442d25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 4 Dec 2019 14:01:56 +0900 Subject: internal/string.h rework Reduced the number of macros defined in the file. Also made it explicit for MJIT_FUNC_EXPORTTED functions to be so. --- internal/compilers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/compilers.h') diff --git a/internal/compilers.h b/internal/compilers.h index 0f470937c5..2b1189a670 100644 --- a/internal/compilers.h +++ b/internal/compilers.h @@ -92,6 +92,7 @@ # define __has_builtin____builtin_clz GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_clzl GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_clzll GCC_VERSION_SINCE(3, 6, 0) +# define __has_builtin____builtin_constant_p GCC_VERSION_SINCE(2,95, 3) # define __has_builtin____builtin_ctz GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_ctzl GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_ctzll GCC_VERSION_SINCE(3, 6, 0) @@ -130,6 +131,10 @@ # undef __has_builtin____builtin_clzll # define __has_builtin____builtin_clzll HAVE_BUILTIN____BUILTIN_CLZLL # endif +# ifdef HAVE_BUILTIN____BUILTIN_CONSTANT_P +# undef __has_builtin____builtin_constant_p +# define __has_builtin____builtin_constant_p HAVE_BUILTIN____BUILTIN_CONSTANT_P +# endif # ifdef HAVE_BUILTIN____BUILTIN_CTZ # undef __has_builtin____builtin_ctz # define __has_builtin____builtin_ctz HAVE_BUILTIN____BUILTIN_CTZ -- cgit v1.2.3