From 1fd73818df53ae51adb681a34b2d5bca4bb37e49 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 15 Oct 2023 19:05:29 -0500 Subject: adjust how sizeof time_t is set, the current way causes issues with MSVC 2022's preprocessor --- include/compat/time.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/compat/time.h b/include/compat/time.h index 540807d..2748521 100644 --- a/include/compat/time.h +++ b/include/compat/time.h @@ -3,6 +3,14 @@ * sys/time.h compatibility shim */ +#ifndef SIZEOF_TIME_T +#ifdef SMALL_TIME_T +#define SIZEOF_TIME_T 4 +#else +#define SIZEOF_TIME_T 8 +#endif +#endif + #ifdef _MSC_VER #if _MSC_VER >= 1900 #include <../ucrt/time.h> -- cgit v1.2.3-55-g6feb