mirror of https://github.com/x64dbg/zydis
Merge branch 'master' into develop
This commit is contained in:
commit
a49d70e4a7
|
@ -14,7 +14,7 @@ if (NOT CONFIGURED_ONCE)
|
|||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
|
||||
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(compiler_specific "-Werror")
|
||||
set(compiler_specific_cxx "-std=c++0x")
|
||||
set(compiler_specific_cxx "-std=c++14")
|
||||
elseif (MSVC)
|
||||
set(compiler_specific "/WX /W4 /D_CRT_SECURE_NO_WARNINGS")
|
||||
endif ()
|
||||
|
|
|
@ -126,7 +126,7 @@ public:
|
|||
static FullClassT* fromInstance(ZydisClassT* instance)
|
||||
{
|
||||
return reinterpret_cast<FullClassT*>(
|
||||
reinterpret_cast<uintptr_t>(instance) - offsetof(FullClassT, instance));
|
||||
reinterpret_cast<uintptr_t>(instance) - sizeof(std::declval<FullClassT>().type));
|
||||
}
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
|
|
@ -33,8 +33,9 @@
|
|||
|
||||
#define Zydis_EXPORTS
|
||||
|
||||
#include <cstdbool>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "ZydisExportConfig.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -88,4 +88,4 @@ void ExactSymbolResolver::clear()
|
|||
|
||||
/* ============================================================================================== */
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#ifndef _ZYDIS_SYMBOLRESOLVER_HPP_
|
||||
#define _ZYDIS_SYMBOLRESOLVER_HPP_
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "ZydisTypes.hpp"
|
||||
|
||||
|
|
Loading…
Reference in New Issue