summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-01-08 23:53:40 +0300
committerAndrei Karas <akaras@inbox.ru>2020-01-09 00:21:23 +0300
commit9736ec9e8469c4faaf6fa4df0e56b5a4ab424999 (patch)
treedd8ad1921cba5cfb2593ef91cdc4d924bd7e0a15 /src/plugins
parentbf99547843038bc15dc1948748d969950e866465 (diff)
downloadhercules-9736ec9e8469c4faaf6fa4df0e56b5a4ab424999.tar.gz
hercules-9736ec9e8469c4faaf6fa4df0e56b5a4ab424999.tar.bz2
hercules-9736ec9e8469c4faaf6fa4df0e56b5a4ab424999.tar.xz
hercules-9736ec9e8469c4faaf6fa4df0e56b5a4ab424999.zip
Fix redefine HPM structs in multy file plugins
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking.h b/src/plugins/HPMHooking.h
index f94dccac4..39d63a50b 100644
--- a/src/plugins/HPMHooking.h
+++ b/src/plugins/HPMHooking.h
@@ -41,7 +41,11 @@ struct HPMHooking_core_interface {
const char *(*Hooked)(bool *fr);
};
#else // ! HERCULES_CORE
+#ifdef HERCULES_CORE_HPMI_SKIP
+extern struct HPMHooking_interface HPMHooking_s;
+#else
HPExport struct HPMHooking_interface HPMHooking_s;
+#endif
#include "HPMHooking/HPMHooking.Defs.inc"