From 2723cea2c509f164b666b2fdd3c1ecf4b9685be7 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 18 Aug 2020 21:13:42 -0600 Subject: [PATCH] perl.h: Pay attention to if can have non-int bitfields --- perl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/perl.h b/perl.h index 513de1f60964..e2bac33027e0 100644 --- a/perl.h +++ b/perl.h @@ -4062,13 +4062,25 @@ typedef struct crypt_data { /* straight from /usr/include/crypt.h */ /* macros to define bit-fields in structs. */ #ifndef PERL_BITFIELD8 +# ifdef HAS_NON_INT_BITFIELDS # define PERL_BITFIELD8 U8 +# else +# define PERL_BITFIELD8 unsigned +# endif #endif #ifndef PERL_BITFIELD16 +# ifdef HAS_NON_INT_BITFIELDS # define PERL_BITFIELD16 U16 +# else +# define PERL_BITFIELD16 unsigned +# endif #endif #ifndef PERL_BITFIELD32 +# ifdef HAS_NON_INT_BITFIELDS # define PERL_BITFIELD32 U32 +# else +# define PERL_BITFIELD32 unsigned +# endif #endif #include "sv.h"