summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h6
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)