aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:50 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:50 +0000
commitaac7975717b668528bd87b7306c45802bf2047cc (patch)
tree02813ee6b1415cbf2ff1c427dfa4479be8399c2e /compile.c
parent41a9c60a937f8ff67694637557db4510917e26ab (diff)
downloadruby-aac7975717b668528bd87b7306c45802bf2047cc.tar.gz
bit-fields other than int is a C99ism
To be precise C90 says "A bit-field may have type int, unsigned int, or signed int". It is clear that char or enum are NG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 0bb6c59e6c..51d6f1be01 100644
--- a/compile.c
+++ b/compile.c
@@ -7985,7 +7985,11 @@ struct ibf_id_entry {
ibf_id_enc_ascii,
ibf_id_enc_utf8,
ibf_id_enc_other
- } enc : 2;
+ } enc
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+ : 2
+#endif
+ ;
char body[1];
};