summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-22 19:36:50 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-22 19:36:50 +0200
commita7026d8c72e604fe6f868cc8e7cd665ac8b8be44 (patch)
tree01d39da64a10999e65dab16af379e65628f7c1a7 /source
parenta6b362e7bedca7f0dfe9e352ea7a895e4ac7e3c4 (diff)
downloadkit-a7026d8c72e604fe6f868cc8e7cd665ac8b8be44.zip
fix timespec_get
Diffstat (limited to 'source')
-rw-r--r--source/kit/kit_test.h2
-rw-r--r--source/kit/time.h2
2 files changed, 2 insertions, 2 deletions
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