From 0df92d218e88a0070fcebd5391e7ba8fa0f4c4a5 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 19 Jan 2023 18:49:54 +0000 Subject: [PATCH] Sync with timelib 2022.04 properly --- ext/date/lib/timelib.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ext/date/lib/timelib.h b/ext/date/lib/timelib.h index 2848c11b91f..550015158c7 100644 --- a/ext/date/lib/timelib.h +++ b/ext/date/lib/timelib.h @@ -39,6 +39,22 @@ #include #include +# ifndef HAVE_INT32_T +# if SIZEOF_INT == 4 +typedef int int32_t; +# elif SIZEOF_LONG == 4 +typedef long int int32_t; +# endif +# endif + +# ifndef HAVE_UINT32_T +# if SIZEOF_INT == 4 +typedef unsigned int uint32_t; +# elif SIZEOF_LONG == 4 +typedef unsigned long int uint32_t; +# endif +# endif + #ifdef _WIN32 # if _MSC_VER >= 1600 # include