From e394fa6fd3e5df6b72149f698eec6bf30d54cd3a Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 5 Jun 2021 09:10:54 -0600 Subject: [PATCH] perl.h: Create PERL_UINTMAX_SIZE This is the sizeof() the widest unsigned available on the platform. This #define is so that the value can be used in preprocessor expressions --- perl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl.h b/perl.h index 61e73cdaeb0e..5e01a4ed327e 100644 --- a/perl.h +++ b/perl.h @@ -1201,6 +1201,7 @@ Use L 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 @@ -1215,6 +1216,7 @@ Use L 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