summaryrefslogtreecommitdiff
path: root/ext/rbconfig
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 12:14:21 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 12:14:21 (GMT)
commit899d49bd2980c1fae55818cf983449c71a800949 (patch)
tree32a6387bc845f39a3de5ee506db9148b1e9ddd06 /ext/rbconfig
parent2f9b7898f6fa4716d61eb8bff03cc645749e9838 (diff)
* ext/rbconfig/sizeof/extconf.rb: Check C99 standard integer types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/rbconfig')
-rw-r--r--ext/rbconfig/sizeof/extconf.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/rbconfig/sizeof/extconf.rb b/ext/rbconfig/sizeof/extconf.rb
index f4379b0..66f7d77 100644
--- a/ext/rbconfig/sizeof/extconf.rb
+++ b/ext/rbconfig/sizeof/extconf.rb
@@ -1,4 +1,23 @@
$srcs = %w[sizes.c]
$distcleanfiles.concat($srcs)
+check_sizeof('int8_t')
+check_sizeof('int16_t')
+check_sizeof('int32_t')
+check_sizeof('int64_t')
+check_sizeof('int_least8_t')
+check_sizeof('int_least16_t')
+check_sizeof('int_least32_t')
+check_sizeof('int_least64_t')
+check_sizeof('int_fast8_t')
+check_sizeof('int_fast16_t')
+check_sizeof('int_fast32_t')
+check_sizeof('int_fast64_t')
+check_sizeof('intptr_t')
+check_sizeof('intmax_t')
+check_sizeof('sig_atomic_t', %w[signal.h])
+check_sizeof('wchar_t')
+check_sizeof('wint_t', %w[wctype.h])
+check_sizeof('wctrans_t', %w[wctype.h])
+check_sizeof('wctype_t', %w[wctype.h])
check_sizeof('__int128')
create_makefile('rbconfig/sizeof')