From 9736ec9e8469c4faaf6fa4df0e56b5a4ab424999 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jan 2020 23:53:40 +0300 Subject: Fix redefine HPM structs in multy file plugins --- src/plugins/HPMHooking.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') 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" -- cgit v1.2.3-60-g2f50