summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2020-02-08 11:02:08 +0100
committerYves Orton <demerphq@gmail.com>2020-02-08 11:02:08 +0100
commitf8e72076393d9d7449840dbf7eb1feb3f9616113 (patch)
tree1bf39070391656c9abc4e8e470e728029f623fdc /win32/win32.h
parent16933d619ff0a6284a4a90626ab5d39e472c694f (diff)
downloadperl-f8e72076393d9d7449840dbf7eb1feb3f9616113.tar.gz
fix defines for PERL_BITFIELDxx on Linux and Win32
for some reason PERL_BITFIELD32 is defined as "unsigned" which is defined to be the same as "unsigned int" which could be 16 bits. This changes the definition for PERL_BITFIELDxx to be the same on both platforms and to use the full names for the type, and to use a type which is guaranteed to be at least 32 bits long for PERL_BITFIELD32.
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.h b/win32/win32.h
index e9138af7a3..a91776cf0e 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -255,8 +255,8 @@ struct utsname {
/* VC uses non-standard way to determine the size and alignment if bit-fields */
/* MinGW will compile with -mms-bitfields, so should use the same types */
#define PERL_BITFIELD8 unsigned char
-#define PERL_BITFIELD16 unsigned short
-#define PERL_BITFIELD32 unsigned int
+#define PERL_BITFIELD16 unsigned short int
+#define PERL_BITFIELD32 unsigned long int
#ifdef _MSC_VER /* Microsoft Visual C++ */