aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 15:09:23 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 15:09:23 +0000
commitfd1f26990bf952457f6d23c1a3f541bc8a125d67 (patch)
tree6494556ece9d3f36c7356b6fcd45fee4fdbda268 /gc.c
parent54e89af4a63b7ad5b0946d8ae8c1948794a08b68 (diff)
downloadruby-fd1f26990bf952457f6d23c1a3f541bc8a125d67.tar.gz
use _Static_assert with clang
* gc.c (__has_feature): move into internal.h. * internal.h (__has_feature): ditto. * internal.h (__has_extension): new macro. * internal.h (STATIC_ASSERT): use _Static_assert with clang. [ruby-core:69931] [Bug #11343] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 71277554d7..2bb5f7a5b0 100644
--- a/gc.c
+++ b/gc.c
@@ -35,10 +35,6 @@
#undef rb_data_object_wrap
-#ifndef __has_feature
-# define __has_feature(x) 0
-#endif
-
#ifndef HAVE_MALLOC_USABLE_SIZE
# ifdef _WIN32
# define HAVE_MALLOC_USABLE_SIZE