diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-22 04:04:06 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-22 04:04:06 +0000 |
commit | 84fd997fe6460e5fcccbae557e95068cf94cd55d (patch) | |
tree | 033171b77cdbf50683e12d0f0d54edc46413be4e /internal.h | |
parent | d4313df0851e85a4bd3343b44932195953cbd6bf (diff) |
Avoid compiler depend error
ref r64492
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal.h b/internal.h index 20df1453e2..de62de1029 100644 --- a/internal.h +++ b/internal.h @@ -2144,14 +2144,14 @@ rb_obj_builtin_type(VALUE obj) /* * For declaring bitfields out of non-unsigned int types: * struct date { - * BITFIELD(enum months) month:4; + * BITFIELD(enum months, month, 4); * ... * }; */ #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) -# define BITFIELD(type) type +# define BITFIELD(type, name, size) type name : size #else -# define BITFIELD(type) unsigned int +# define BITFIELD(type, name, size) unsigned int name : size #endif #if defined(_MSC_VER) |