From ec30a2b436281f380229979933b55e302b606687 Mon Sep 17 00:00:00 2001 From: Pierre Le Marre Date: Thu, 23 Nov 2023 10:12:55 +0100 Subject: [PATCH] WIP Fix Windows --- src/util-mem.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util-mem.h b/src/util-mem.h index 3a403ad4f..c83d334fa 100644 --- a/src/util-mem.h +++ b/src/util-mem.h @@ -37,5 +37,10 @@ _steal(void *ptr) { /** * Resets the pointer content and resets the data to NULL. */ +#ifdef _WIN32 +#define steal(ptr_) \ + _steal(ptr_) +#else #define steal(ptr_) \ (__typeof__(*ptr_))_steal(ptr_) +#endif