Skip to content

Commit

Permalink
WIP Fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Nov 23, 2023
1 parent 198db0f commit ec30a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util-mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec30a2b

Please sign in to comment.