aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-09 02:40:12 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-09 02:40:12 +0000
commitd1d6b66e15a12469ef3c04a342b2a2f1d6113bb7 (patch)
tree91ac1b6cbb1b8f8d4fba27be41b2c30cbf5f563f /include
parent81aeca6cbea25591806f47e6b838ded3a4cee627 (diff)
downloadruby-d1d6b66e15a12469ef3c04a342b2a2f1d6113bb7.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')
-rw-r--r--include/ruby/defines.h3
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