Skip to content

Commit b37fc77

Browse files
committed
Attempt to fix weird build issues with CYGWIN and MacOS (fixes #88)
1 parent aa97b1a commit b37fc77

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/windbg.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
8+
# define _GNU_SOURCE
9+
#endif
10+
711
#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
812
#define BOOST_STACKTRACE_LINK
913
#include <boost/stacktrace/detail/frame_msvc.ipp>

src/windbg_cached.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
8+
# define _GNU_SOURCE
9+
#endif
10+
711
#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
812
#define BOOST_STACKTRACE_LINK
913
#define BOOST_STACKTRACE_USE_WINDBG_CACHED

0 commit comments

Comments
 (0)