diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-09 02:40:12 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-09 02:40:12 +0000 |
commit | 9930481a239fa7182429f3c3942ea033fb9b0320 (patch) | |
tree | 91ac1b6cbb1b8f8d4fba27be41b2c30cbf5f563f /include/ruby | |
parent | 784fdba37c07e1a1fa7eb2bb13f914bfe363920d (diff) | |
download | ruby-9930481a239fa7182429f3c3942ea033fb9b0320.tar.gz |
Prefer alignof() over _Alignof()
to allow C++ programs include <ruby.h>. [Bug #14668]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 375e039d4b..eb25d6e3eb 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -135,6 +135,9 @@ extern "C" { #ifdef HAVE_STDINT_H # include <stdint.h> #endif +#ifdef HAVE_STDALIGN_H +# include <stdalign.h> +#endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif |