mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977457 - Move _GNU_SOURCE ifdef a little up to account for cxxabi.h from libcxxrt. r=ehsan
This commit is contained in:
parent
2704eac7f6
commit
90ced12417
@ -23,6 +23,12 @@ struct CriticalAddress {
|
||||
};
|
||||
static CriticalAddress gCriticalAddress;
|
||||
|
||||
// for _Unwind_Backtrace from libcxxrt or libunwind
|
||||
// cxxabi.h from libcxxrt implicitly includes unwind.h first
|
||||
#if defined(HAVE__UNWIND_BACKTRACE) && !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_DLOPEN) || defined(XP_MACOSX)
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
@ -1222,9 +1228,6 @@ NS_StackWalk(NS_WalkStackCallback aCallback, uint32_t aSkipFrames,
|
||||
#elif defined(HAVE__UNWIND_BACKTRACE)
|
||||
|
||||
// libgcc_s.so symbols _Unwind_Backtrace@@GCC_3.3 and _Unwind_GetIP@@GCC_3.0
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <unwind.h>
|
||||
|
||||
struct unwind_info {
|
||||
|
Loading…
Reference in New Issue
Block a user