From e7c2f7d827ad286dc826e483391e64b8ffe2720b Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 11 Aug 2015 02:17:37 +0200 Subject: Automatic HPM symbol sharing Signed-off-by: Haru --- tools/HPMHookGen/HPMDataCheckGen.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/HPMHookGen/HPMDataCheckGen.pl b/tools/HPMHookGen/HPMDataCheckGen.pl index 2f4b02d26..e658f8be8 100644 --- a/tools/HPMHookGen/HPMDataCheckGen.pl +++ b/tools/HPMHookGen/HPMDataCheckGen.pl @@ -58,9 +58,12 @@ print FH <<"EOF"; #ifndef HPM_DATA_CHECK_H #define HPM_DATA_CHECK_H -#if !defined(HERCULES_CORE) && !defined(HPMHOOKGEN) +#if !defined(HPMHOOKGEN) #include "common/HPMSymbols.inc.h" -#endif // ! HERCULES_CORE && ! HPMHOOKGEN +#endif // ! HPMHOOKGEN +#ifdef HPM_SYMBOL +#undef HPM_SYMBOL +#endif // HPM_SYMBOL HPExport const struct s_HPMDataCheck HPMDataCheck[] = { EOF -- cgit v1.2.3-70-g09d2