Skip to content

Commit

Permalink
btrace: fix WIN32_LEAN_AND_MEAN macro redefine (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo-zt authored Jul 15, 2023
1 parent beadda3 commit 9cecb6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/re_btrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ static inline int btrace(struct btrace *bt)
return 0;
}
#elif defined(WIN32)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
static inline int btrace(struct btrace *bt)
{
Expand Down
2 changes: 2 additions & 0 deletions src/btrace/btrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#include <unistd.h>
#endif
#ifdef WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <dbghelp.h>
#endif
Expand Down

0 comments on commit 9cecb6e

Please sign in to comment.