Skip to content

Commit

Permalink
perl.h: Create PERL_UINTMAX_SIZE
Browse files Browse the repository at this point in the history
This is the sizeof() the widest unsigned available on the platform.
This #define is so that the value can be used in preprocessor
expressions
  • Loading branch information
khwilliamson committed Jun 29, 2021
1 parent b2a71d9 commit cf80bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl.h
Expand Up @@ -1202,6 +1202,7 @@ Use L</UV> to declare variables of the maximum usable size on this platform.
typedef I64TYPE PERL_INTMAX_T;
typedef U64TYPE PERL_UINTMAX_T;
# endif
# define PERL_UINTMAX_SIZE U64SIZE
# ifndef INTMAX_C
# define INTMAX_C(c) INT64_C(c)
# endif
Expand All @@ -1216,6 +1217,7 @@ Use L</UV> to declare variables of the maximum usable size on this platform.
typedef I32TYPE PERL_INTMAX_T;
typedef U32TYPE PERL_UINTMAX_T;
# endif
# define PERL_UINTMAX_SIZE U32SIZE;
# ifndef INTMAX_C
# define INTMAX_C(c) INT32_C(c)
# endif
Expand Down

0 comments on commit cf80bec

Please sign in to comment.