From a7026d8c72e604fe6f868cc8e7cd665ac8b8be44 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 22 Sep 2023 19:36:50 +0200 Subject: fix timespec_get --- source/kit/kit_test.h | 2 +- source/kit/time.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/kit/kit_test.h b/source/kit/kit_test.h index b6f43a6..8daa50e 100644 --- a/source/kit/kit_test.h +++ b/source/kit/kit_test.h @@ -300,7 +300,7 @@ int kit_run_benchmarks(int argc, char **argv); # define TIME_UTC 1 # endif -# ifdef __MINGW32__ +# ifdef KIT_REQUIRE_TIMESPEC_GET # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 # endif diff --git a/source/kit/time.h b/source/kit/time.h index b1816b0..c14f8ff 100644 --- a/source/kit/time.h +++ b/source/kit/time.h @@ -15,7 +15,7 @@ extern "C" { # define TIME_UTC 1 #endif -#ifdef __MINGW32__ +#ifdef KIT_REQUIRE_TIMESPEC_GET # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 # endif -- cgit v1.2.3