summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-24 06:49:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-24 06:49:09 +0000
commitd573446841743e709c3da79b28051ab4fc18d3fd (patch)
tree2685dbfc28db130d495d2d9e00e7c3545407078c /include
parent0d1c8fd9d6407a1c58d329f2b4f53b16494cce84 (diff)
* configure.in (__builtin_unreachable): check for clang.
[ruby-core:42849] * include/ruby/ruby.h (UNREACHABLE): fallback definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 75f0d71965..898d2e251d 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -36,6 +36,9 @@ extern "C" {
#ifndef NOINLINE
# define NOINLINE(x) x
#endif
+#ifndef UNREACHABLE
+# define UNREACHABLE /* unreachable */
+#endif
#ifdef __GNUC__
#define PRINTF_ARGS(decl, string_index, first_to_check) \