mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
decompiler: fix '#error config.h must be included before this header'
See https://sourceware.org/bugzilla/show_bug.cgi?id=14243
This commit is contained in:
parent
824723e492
commit
fcff16262b
1 changed files with 24 additions and 0 deletions
|
@ -20,8 +20,32 @@
|
|||
#define __LOADIMAGE_BFD__
|
||||
|
||||
#include "loadimage.hh"
|
||||
|
||||
// bfd.h requires PACKAGE/PACKAGE_VERSION to be defined
|
||||
// https://sourceware.org/bugzilla/show_bug.cgi?id=14243
|
||||
|
||||
#ifndef PACKAGE
|
||||
#define PACKAGE
|
||||
#define __LOADIMAGE_BFD__DEFINED_PACKAGE
|
||||
#endif
|
||||
|
||||
#ifndef PACKAGE_VERSION
|
||||
#define PACKAGE_VERSION
|
||||
#define __LOADIMAGE_BFD__DEFINED_PACKAGE_VERSION
|
||||
#endif
|
||||
|
||||
#include <bfd.h>
|
||||
|
||||
#ifdef __LOADIMAGE_BFD__DEFINED_PACKAGE
|
||||
#undef PACKAGE
|
||||
#undef __LOADIMAGE_BFD__DEFINED_PACKAGE
|
||||
#endif
|
||||
|
||||
#ifdef __LOADIMAGE_BFD__DEFINED_PACKAGE_VERSION
|
||||
#undef PACKAGE_VERSION
|
||||
#undef __LOADIMAGE_BFD__DEFINED_PACKAGE_VERSION
|
||||
#endif
|
||||
|
||||
struct ImportRecord {
|
||||
string dllname;
|
||||
string funcname;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue