diff --git a/core/vm/sp_vm_engine.cpp b/core/vm/sp_vm_engine.cpp index 02615e26..9438c034 100644 --- a/core/vm/sp_vm_engine.cpp +++ b/core/vm/sp_vm_engine.cpp @@ -29,6 +29,16 @@ * Version: $Id$ */ +#include +/* HACK to avoid including sourcehook.h for just the SH_ASSERT definition */ +#if !defined SH_ASSERT + #define SH_ASSERT(x, info) + #include + #undef SH_ASSERT +#else + #include +#endif + #include #include #include diff --git a/core/vm/sp_vm_engine.h b/core/vm/sp_vm_engine.h index 5e3eee98..e5b4294c 100644 --- a/core/vm/sp_vm_engine.h +++ b/core/vm/sp_vm_engine.h @@ -32,18 +32,11 @@ #ifndef _INCLUDE_SOURCEPAWN_VM_ENGINE_H_ #define _INCLUDE_SOURCEPAWN_VM_ENGINE_H_ -#include -/* HACK to avoid including sourcehook.h for just the SH_ASSERT definition */ -#if !defined SH_ASSERT - #define SH_ASSERT(x, info) - #include - #undef SH_ASSERT -#else - #include -#endif #include "sp_vm_api.h" #include "sp_vm_function.h" +class SourceHook::CPageAlloc; + struct TracedCall { uint32_t cip;