explicitely allow disabling unwind, test for header and function too

This commit is contained in:
Riccardo Mottola 2020-07-28 01:02:55 +02:00
parent 98b94dea15
commit 24261fdc45
4 changed files with 69 additions and 4 deletions

View file

@ -565,7 +565,7 @@ GSListModules()
#endif /* USE_BFD */
#if defined(HAVE_UNWIND_H) && !defined(HAVE_BACKTRACE)
#if defined(WITH_UNWIND) && !defined(HAVE_BACKTRACE)
#include <unwind.h>
#if !defined(_WIN32)
@ -593,7 +593,7 @@ GSUnwindCallback(struct _Unwind_Context* context, void* arg)
return 0; //_URC_OK/_URC_NO_REASON
}
#endif /* HAVE_UNWIND_H && !HAVE_BACKTRACE */
#endif /* WITH_UNWIND && !HAVE_BACKTRACE */
#if defined(_WIN32) && !defined(USE_BFD)