diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-09-03 19:08:01 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-09-05 15:57:40 +0100 |
commit | b78a7710199fb1414776047f85d54684bbd8bdce (patch) | |
tree | 567d76945f93f56eba90774388a81b4b93bd9ade | |
parent | c71a5687e076550fb607f85a9ff041bda7afe4e9 (diff) |
mhook: Try to fix the build with older MinGW versions.
-rw-r--r-- | thirdparty/mhook/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/thirdparty/mhook/CMakeLists.txt b/thirdparty/mhook/CMakeLists.txt index 62429ae8..8545a5ff 100644 --- a/thirdparty/mhook/CMakeLists.txt +++ b/thirdparty/mhook/CMakeLists.txt @@ -1,6 +1,9 @@ remove_definitions (-DNOMINMAX) -add_definitions (-DUNICODE -D_UNICODE) +add_definitions ( + -DUNICODE -D_UNICODE + -DMINGW_HAS_SECURE_API=1 +) if (NOT MSVC) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-comment") |