summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2008-02-01 05:40:41 -0800
committerSteve Peters <steve@fisharerojo.org>2008-02-12 14:58:50 +0000
commit654eccd594bfe8deab367b0f4cdda726a7796ff3 (patch)
treef063ed3713d5cb4ef88ad77b357d58492635b436 /perl.h
parent7918f24d20384771923d344a382e1d16d9552018 (diff)
downloadperl-654eccd594bfe8deab367b0f4cdda726a7796ff3.tar.gz
Fix bit-fields for VC [was RE: [perl #50386] GIMME_V broken with 5.10.0/GCC and XS?]
From: "Jan Dubois" <jand@activestate.com> Message-ID: <02ee01c8651b$17ef72f0$47ce58d0$@com> p4raw-id: //depot/perl@33292
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 35bc28a53a..16b0c7c5ef 100644
--- a/perl.h
+++ b/perl.h
@@ -3328,6 +3328,17 @@ struct nexttoken {
};
#endif
+/* macros to define bit-fields in structs. */
+#ifndef PERL_BITFIELD8
+# define PERL_BITFIELD8 unsigned
+#endif
+#ifndef PERL_BITFIELD16
+# define PERL_BITFIELD16 unsigned
+#endif
+#ifndef PERL_BITFIELD32
+# define PERL_BITFIELD32 unsigned
+#endif
+
#include "sv.h"
#include "regexp.h"
#include "util.h"