Skip to content

Commit bae40c8

Browse files
Fix windows pragma comments
1 parent fab1dac commit bae40c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libcxx/src/stacktrace/windows_impl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
# include <cstring>
2020
# include <mutex>
2121

22-
# pragma comment(lib, "dbghelp")
23-
# pragma comment(lib, "psapi")
22+
# if defined(_MSC_VER) && !defined(__MINGW32__)
23+
# pragma comment(lib, "dbghelp")
24+
# pragma comment(lib, "psapi")
25+
# endif
2426

2527
_LIBCPP_BEGIN_NAMESPACE_STD
2628
namespace __stacktrace {

0 commit comments

Comments
 (0)