Skip to content

Commit

Permalink
Attempt to fix weird build issues with CYGWIN and MacOS (fixes #88)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Sep 12, 2024
1 parent aa97b1a commit b37fc77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/windbg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif

#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
#define BOOST_STACKTRACE_LINK
#include <boost/stacktrace/detail/frame_msvc.ipp>
Expand Down
4 changes: 4 additions & 0 deletions src/windbg_cached.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif

#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
#define BOOST_STACKTRACE_LINK
#define BOOST_STACKTRACE_USE_WINDBG_CACHED
Expand Down

0 comments on commit b37fc77

Please sign in to comment.