diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-14 15:09:23 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-14 15:09:23 +0000 |
commit | fd1f26990bf952457f6d23c1a3f541bc8a125d67 (patch) | |
tree | 6494556ece9d3f36c7356b6fcd45fee4fdbda268 /gc.c | |
parent | 54e89af4a63b7ad5b0946d8ae8c1948794a08b68 (diff) | |
download | ruby-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 |