From af4d60f5b4003b6d63e738a0f5c68942a300ae7f Mon Sep 17 00:00:00 2001 From: Julien Hecht Date: Thu, 15 Oct 2026 18:30:17 +0200 Subject: [PATCH] Move semaphore to new `ETL_USING_` syntax in platform.h --- include/etl/platform.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/etl/platform.h b/include/etl/platform.h index cac6e0b6..452b0647 100644 --- a/include/etl/platform.h +++ b/include/etl/platform.h @@ -115,12 +115,11 @@ SOFTWARE. //************************************* // Helper macros for ETL_NO_STD_SEMAPHORE. #if defined(ETL_NO_STD_SEMAPHORE) - #define ETL_USING_STD_SEMAPHORE 0 - #define ETL_NOT_USING_STD_SEMAPHORE 1 + #define ETL_USING_STD_SEMAPHORE 0 #else - #define ETL_USING_STD_SEMAPHORE 1 - #define ETL_NOT_USING_STD_SEMAPHORE 0 + #define ETL_USING_STD_SEMAPHORE 1 #endif +#define ETL_NOT_USING_STD_SEMAPHORE (1 - ETL_USING_STD_SEMAPHORE) //************************************* // Helper macros for ETL_STLPORT.