summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-12 16:01:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-12 17:02:42 +0900
commit21c5726418136d6efa98cbf205860a8bee328907 (patch)
tree9a3e16b98842197e57864b1950d79c93d23348ea /include
parente53c0bc906c514ca6f0d40e2140dee1e23b4591e (diff)
Omit checks for C89 standard or later
Now we require C99, these features available of course. * prototypes * stdarg prototypes * token pasting * stringization * string literal concatenation
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3889
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/config.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/ruby/internal/config.h b/include/ruby/internal/config.h
index 4a7a461b7a..67d7e0156f 100644
--- a/include/ruby/internal/config.h
+++ b/include/ruby/internal/config.h
@@ -28,18 +28,21 @@
#include "ruby/internal/compiler_since.h"
+#undef HAVE_PROTOTYPES
+#define HAVE_PROTOTYPES 1
+
+#undef HAVE_STDARG_PROTOTYPES
+#define HAVE_STDARG_PROTOTYPES 1
+
+#undef TOKEN_PASTE
+#define TOKEN_PASTE(x,y) x##y
+
#if defined(__cplusplus)
#/* __builtin_choose_expr and __builtin_types_compatible aren't available
# * on C++. See https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html */
# undef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
# undef HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P
-# undef HAVE_PROTOTYPES
-# define HAVE_PROTOTYPES 1
-
-# undef HAVE_STDARG_PROTOTYPES
-# define HAVE_STDARG_PROTOTYPES 1
-
/* HAVE_VA_ARGS_MACRO is for C. C++ situations might be different. */
# undef HAVE_VA_ARGS_MACRO
# if __cplusplus >= 201103L