Skip to content

Commit

Permalink
perl.h: Pay attention to if can have non-int bitfields
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jun 15, 2021
1 parent bf57802 commit 2723cea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions perl.h
Expand Up @@ -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"
Expand Down

0 comments on commit 2723cea

Please sign in to comment.