From 90a8778f70098cceccc0355c277a4a36093983d2 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:23:07 +0800 Subject: [PATCH] fix macro use name --- 3party/gperftools/src/base/googleinit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3party/gperftools/src/base/googleinit.h b/3party/gperftools/src/base/googleinit.h index b69a2a4..fcbd253 100644 --- a/3party/gperftools/src/base/googleinit.h +++ b/3party/gperftools/src/base/googleinit.h @@ -52,7 +52,7 @@ public: if (destructor_) destructor_(); } - const char *name() const { return name_; } + const char *module_name() const { return name_; } private: const char *const name_; @@ -65,7 +65,7 @@ private: GoogleInitializer google_initializer_module_##name(#name, google_init_module_##name, NULL); \ __attribute__((constructor)) static void EnsureConstructorRunsBeforeMain() \ { \ - google_initializer_module_##name.name(); \ + google_initializer_module_##name.module_name(); \ } \ }