summaryrefslogtreecommitdiff
path: root/thirdparty/mhook/mhook-lib/mhook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/mhook/mhook-lib/mhook.cpp')
-rw-r--r--thirdparty/mhook/mhook-lib/mhook.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/thirdparty/mhook/mhook-lib/mhook.cpp b/thirdparty/mhook/mhook-lib/mhook.cpp
index 3380dcea..7249ad5d 100644
--- a/thirdparty/mhook/mhook-lib/mhook.cpp
+++ b/thirdparty/mhook/mhook-lib/mhook.cpp
@@ -24,6 +24,10 @@
#include "mhook.h"
#include "../disasm-lib/disasm.h"
+#ifndef max
+#define max(a,b) (((a) > (b)) ? (a) : (b))
+#endif
+
//=========================================================================
#ifndef cntof
#define cntof(a) (sizeof(a)/sizeof(a[0]))