mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-05-04 13:59:34 +00:00
Merge pull request #34 from milianw/fix_bfd_compile_on_archlinux
Define PACKAGE and PACKAGE_VERSION before including bfd.h
This commit is contained in:
commit
56cd35f97b
@ -186,6 +186,15 @@ extern "C" uintptr_t _Unwind_GetIPInfo(_Unwind_Context*, int*);
|
||||
# include <signal.h>
|
||||
|
||||
# if BACKWARD_HAS_BFD == 1
|
||||
// NOTE: defining PACKAGE{,_VERSION} is required before including
|
||||
// bfd.h on some platforms, see also:
|
||||
// https://sourceware.org/bugzilla/show_bug.cgi?id=14243
|
||||
# ifndef PACKAGE
|
||||
# define PACKAGE
|
||||
# endif
|
||||
# ifndef PACKAGE_VERSION
|
||||
# define PACKAGE_VERSION
|
||||
# endif
|
||||
# include <bfd.h>
|
||||
# ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user