diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-01-08 23:53:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-01-09 00:21:23 +0300 |
commit | 9736ec9e8469c4faaf6fa4df0e56b5a4ab424999 (patch) | |
tree | dd8ad1921cba5cfb2593ef91cdc4d924bd7e0a15 /src/plugins/HPMHooking.h | |
parent | bf99547843038bc15dc1948748d969950e866465 (diff) | |
download | hercules-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/HPMHooking.h')
-rw-r--r-- | src/plugins/HPMHooking.h | 4 |
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" |