Skip to content

Commit

Permalink
Avoid inclusion of rarely used Windows SDK headers which can cause co…
Browse files Browse the repository at this point in the history
…nflict with other code using Windows SDK. (#157)

Signed-off-by: Marat Abrarov <abrarov@gmail.com>
  • Loading branch information
mabrarov authored Apr 16, 2024
1 parent d1b7a61 commit 39afcef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/boost/stacktrace/detail/frame_msvc.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@
#include <boost/core/noncopyable.hpp>
#include <boost/stacktrace/detail/to_dec_array.hpp>
#include <boost/stacktrace/detail/to_hex_array.hpp>

#ifdef WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
// Prevent inclusion of extra Windows SDK headers which can cause conflict
// with other code using Windows SDK
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#endif

#include "dbgeng.h"

#include <mutex>
Expand Down

0 comments on commit 39afcef

Please sign in to comment.