Skip to content

Commit

Permalink
Only do '#pragma comment(lib, "xxx.lib")' on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Aug 6, 2021
1 parent ee814f1 commit 8bf0e1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ typedef SSIZE_T ssize_t;
#define NOINLINE __declspec(noinline)
#endif

#ifdef _MSC_VER
#pragma comment(lib, "psapi.lib")
#pragma comment(lib, "dbghelp.lib")
#endif

// Comment / packing is from stackoverflow:
// https://stackoverflow.com/questions/6205981/windows-c-stack-trace-from-a-running-app/28276227#28276227
Expand Down

0 comments on commit 8bf0e1c

Please sign in to comment.