aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/3/has/builtin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/3/has/builtin.h')
-rw-r--r--include/ruby/3/has/builtin.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/ruby/3/has/builtin.h b/include/ruby/3/has/builtin.h
index cce6435881..e3f01ed8aa 100644
--- a/include/ruby/3/has/builtin.h
+++ b/include/ruby/3/has/builtin.h
@@ -24,18 +24,18 @@
#include "ruby/3/compiler_since.h"
#include "ruby/3/token_paste.h"
-#ifndef __has_builtin
-# /* Don't bother. */
-#elif RUBY3_COMPILER_IS(Intel)
-# /* :TODO: Intel C Compiler has __has_builtin (since 19.1 maybe?), and is
-# * reportedly broken. We have to skip them. However the situation can
-# * change. They might improve someday. We need to revisit here later. */
-#elif RUBY3_COMPILER_IS(GCC) && ! __has_builtin(__builtin_alloca)
-# /* FreeBSD's <sys/cdefs.h> defines its own *broken* version of __has_builtin.
-# * Cygwin copied that content to be a victim of the broken-ness. We don't
-# * take them into account. */
-#else
-# define RUBY3_HAVE___HAS_BUILTIN 1
+#if defined(__has_builtin)
+# if RUBY3_COMPILER_IS(Intel)
+# /* :TODO: Intel C Compiler has __has_builtin (since 19.1 maybe?), and is
+# * reportedly broken. We have to skip them. However the situation can
+# * change. They might improve someday. We need to revisit here later. */
+# elif RUBY3_COMPILER_IS(GCC) && ! __has_builtin(__builtin_alloca)
+# /* FreeBSD's <sys/cdefs.h> defines its own *broken* version of
+# * __has_builtin. Cygwin copied that content to be a victim of the
+# * broken-ness. We don't take them into account. */
+# else
+# define RUBY3_HAVE___HAS_BUILTIN 1
+# endif
#endif
/** Wraps (or simulates) `__has_builtin`. */