aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/st.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-04-14 10:41:46 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-09-09 16:32:30 +0900
commitf3ea2d159107055864962f94d1fcbbadec8e82b3 (patch)
tree017fa7f4b91c5ddf07502fef9c715b1c9801e882 /include/ruby/st.h
parent6fa1efafb28e0a49b5732052f3fe778c80acad2c (diff)
downloadruby-f3ea2d159107055864962f94d1fcbbadec8e82b3.tar.gz
configure.in: assume limits.h is always available
It's a mandatory header in C89.
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r--include/ruby/st.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 47e14a3e2c..dd693a67b3 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -27,13 +27,7 @@ typedef unsigned LONG_LONG st_data_t;
#endif
#define ST_DATA_T_DEFINED
-#ifndef CHAR_BIT
-# ifdef HAVE_LIMITS_H
-# include <limits.h>
-# else
-# define CHAR_BIT 8
-# endif
-#endif
+#include <limits.h>
#ifndef _
# define _(args) args
#endif