diff options
author | Karl Williamson <khw@cpan.org> | 2020-08-18 21:13:42 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-06-15 08:45:40 -0600 |
commit | 2723cea2c509f164b666b2fdd3c1ecf4b9685be7 (patch) | |
tree | 636becb9c9c6d31ed6048688855b3755e478cbaf /perl.h | |
parent | bf578026aedea7702aef5f819d8a56da9d959fb2 (diff) | |
download | perl-2723cea2c509f164b666b2fdd3c1ecf4b9685be7.tar.gz |
perl.h: Pay attention to if can have non-int bitfields
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |