From 45146a954ba62c546e9ed55d76ae92b61d4380c5 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 17 Nov 2026 09:13:35 +0100 Subject: [PATCH] tests: use a more broad __unix__ to consider generic Unix OSes No need to explicitly lists OSes there, simply use __unix__ for generic Unix OSes. In case it is needed, exceptions can still be added in the same way as ST_WINDOWS and ST_APPLE. --- tests/common/systemtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/systemtime.h b/tests/common/systemtime.h index 3c131124..41c13537 100644 --- a/tests/common/systemtime.h +++ b/tests/common/systemtime.h @@ -6,7 +6,7 @@ #define ST_WINDOWS #elif defined(__APPLE__) && defined(__MACH__) #define ST_APPLE -#elif defined(__linux__) || defined(__FreeBSD__) || defined(BSD) +#elif defined(__unix__) #define ST_NIX #else #error "Unknown platform"