Fix Windows issues

This commit is contained in:
Romain Thomas 2021-01-05 21:37:54 +01:00
parent ec9115a3d1
commit 53ce0cd7d4
5 changed files with 13 additions and 6 deletions

View File

@ -23,6 +23,11 @@
#include "pyMachO.hpp"
#ifdef uuid_t
#pragma message("Windows #define uuid_t, undefine it for this file.")
#undef uuid_t
#endif
namespace LIEF {
namespace MachO {

View File

@ -22,6 +22,8 @@
#include "LIEF/PE/signature/Signature.hpp"
#include "LIEF/PE/signature/SignatureParser.hpp"
#define LIEF_PE_FORCE_UNDEF
#include "LIEF/PE/undef.h"
#include "pyPE.hpp"
namespace LIEF {

View File

@ -13,7 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "pyPE.hpp"
#define LIEF_PE_FORCE_UNDEF
#include "LIEF/PE/undef.h"
#include "LIEF/PE/Structures.hpp"
#include "LIEF/PE/EnumToString.hpp"
#include "enums_wrapper.hpp"

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "LIEF/PE/utils.hpp"
#include "LIEF/MachO/utils.hpp"
#include "LIEF/ELF/utils.hpp"
@ -22,6 +23,8 @@
#include "LIEF/VDEX.hpp"
#include "LIEF/ART.hpp"
#define LIEF_PE_FORCE_UNDEF
#include "LIEF/PE/undef.h"
#include "pyLIEF.hpp"
void init_utils_functions(py::module& m) {

View File

@ -496,10 +496,4 @@ struct pe_exception_entry_arm {
uint32_t data;
};
#pragma pack(pop)