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 6, 2021
1 parent 230b92d commit e394fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl.h
Expand Up @@ -1201,6 +1201,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 @@ -1215,6 +1216,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 e394fa6

Please sign in to comment.