diff options
author | Haru <haru@dotalux.com> | 2015-08-11 02:17:37 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-13 17:16:27 +0200 |
commit | 959c8a772fe4cb775facfe904d243d644e394bf1 (patch) | |
tree | fe0a6fe70527d3cf14c051c7879cad2027617328 /tools/HPMHookGen/HPMDataCheckGen.pl | |
parent | 6b6419014b8ba351feaf62452b9e8bb0e983eacd (diff) | |
download | hercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.gz hercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.bz2 hercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.xz hercules-959c8a772fe4cb775facfe904d243d644e394bf1.zip |
Automatic HPM symbol sharing
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMDataCheckGen.pl')
-rw-r--r-- | tools/HPMHookGen/HPMDataCheckGen.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/HPMHookGen/HPMDataCheckGen.pl b/tools/HPMHookGen/HPMDataCheckGen.pl index 48596eef5..66ce7a4f6 100644 --- a/tools/HPMHookGen/HPMDataCheckGen.pl +++ b/tools/HPMHookGen/HPMDataCheckGen.pl @@ -58,13 +58,16 @@ print FH <<"EOF"; #ifndef HPM_DATA_CHECK_H #define HPM_DATA_CHECK_H -#if !defined(HERCULES_CORE) && !defined(HPMHOOKGEN) +#if !defined(HPMHOOKGEN) HPExport const char *HPM_shared_symbols(int server_type) { #include "common/HPMSymbols.inc.h" return NULL; } -#endif // ! HERCULES_CORE && ! HPMHOOKGEN +#endif // ! HPMHOOKGEN +#ifdef HPM_SYMBOL +#undef HPM_SYMBOL +#endif // HPM_SYMBOL HPExport const struct s_HPMDataCheck HPMDataCheck[] = { EOF |