From bed22e7fa5d33580dce331fd15576f58c0355111 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 26 May 2025 16:00:27 +0200 Subject: [PATCH] compat: add _Acquires_lock_ It is not exactly needed by stdex, but we have such a nice collection of the MSVC SAL here already. Signed-off-by: Simon Rozman --- include/stdex/compat.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stdex/compat.hpp b/include/stdex/compat.hpp index 777fb2475..9b98e1c93 100644 --- a/include/stdex/compat.hpp +++ b/include/stdex/compat.hpp @@ -162,6 +162,10 @@ #define _Null_terminated_ #endif +#ifndef _Acquires_lock_ +#define _Acquires_lock_(l) +#endif + #ifndef _L #define __L(x) L ## x #define _L(x) __L(x)