From 28c9ec1eeb2c44bc3658ae1ca63b11ce8ae2e584 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 6 Sep 2023 02:41:14 +0200 Subject: test --- source/kit_test/shared.inl.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source/kit_test/shared.inl.h') diff --git a/source/kit_test/shared.inl.h b/source/kit_test/shared.inl.h index f80f7ff..07cb966 100644 --- a/source/kit_test/shared.inl.h +++ b/source/kit_test/shared.inl.h @@ -14,22 +14,20 @@ # ifndef TIME_UTC # define TIME_UTC 1 +# endif +# ifdef __MINGW32__ struct timespec { time_t tv_sec; long tv_nsec; }; -# if defined(_WIN32) && !defined(__CYGWIN__) -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN 1 -# endif -# include +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +# include static int timespec_get(struct timespec *ts, int base) { } -# else -static int timespec_get(struct timespec *ts, int base) { } -# endif # endif #endif // kit/time.h -- cgit v1.2.3