unicorn_load: Minor Windows-related changes

- Add missing include
- Fix a potential compilation issue where the constructor wouldn't be able to execute, as it would be private.
This commit is contained in:
Lioncash 2018-01-25 19:47:25 -05:00 committed by MerryMage
parent a8ed248a13
commit cf824fb2b2

View file

@ -9,8 +9,10 @@
#include <unicorn/arm64.h> #include <unicorn/arm64.h>
#include <unicorn_dynload.h> #include <unicorn_dynload.h>
#include "common/assert.h"
static struct LoadDll { static struct LoadDll {
private: public:
LoadDll() { LoadDll() {
ASSERT(uc_dyn_load(NULL, 0)); ASSERT(uc_dyn_load(NULL, 0));
} }
@ -19,4 +21,4 @@ private:
} }
static LoadDll g_load_dll; static LoadDll g_load_dll;
} load_dll; } load_dll;
#endif #endif