summaryrefslogtreecommitdiff
path: root/thirdparty/mhook
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-09-03 19:08:01 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-09-05 15:57:40 +0100
commitb78a7710199fb1414776047f85d54684bbd8bdce (patch)
tree567d76945f93f56eba90774388a81b4b93bd9ade /thirdparty/mhook
parentc71a5687e076550fb607f85a9ff041bda7afe4e9 (diff)
mhook: Try to fix the build with older MinGW versions.
Diffstat (limited to 'thirdparty/mhook')
-rw-r--r--thirdparty/mhook/CMakeLists.txt5
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")