Skip to content

Commit 0df92d2

Browse files
committed
Sync with timelib 2022.04 properly
1 parent af0e96a commit 0df92d2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ext/date/lib/timelib.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@
3939
#include <limits.h>
4040
#include <inttypes.h>
4141

42+
# ifndef HAVE_INT32_T
43+
# if SIZEOF_INT == 4
44+
typedef int int32_t;
45+
# elif SIZEOF_LONG == 4
46+
typedef long int int32_t;
47+
# endif
48+
# endif
49+
50+
# ifndef HAVE_UINT32_T
51+
# if SIZEOF_INT == 4
52+
typedef unsigned int uint32_t;
53+
# elif SIZEOF_LONG == 4
54+
typedef unsigned long int uint32_t;
55+
# endif
56+
# endif
57+
4258
#ifdef _WIN32
4359
# if _MSC_VER >= 1600
4460
# include <stdint.h>

0 commit comments

Comments
 (0)