summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-11 02:17:37 +0200
committerHaru <haru@dotalux.com>2015-08-15 00:51:45 +0200
commite7c2f7d827ad286dc826e483391e64b8ffe2720b (patch)
tree16cab3d257a795c015dfd55c0eaf2447d0f52462 /tools/HPMHookGen
parent5efc9f173f6905da39f3037c278e0e880e82ca35 (diff)
downloadhercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.gz
hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.bz2
hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.xz
hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.zip
Automatic HPM symbol sharing
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen')
-rw-r--r--tools/HPMHookGen/HPMDataCheckGen.pl7
1 files changed, 5 insertions, 2 deletions
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