From 6cafce5d7e86e5fced40ee9dd81565401cfe464d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 4 Nov 2014 11:17:14 +0100 Subject: [PATCH] Build fix for RHEL 5 --- lib/base/primitivetype.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/base/primitivetype.hpp b/lib/base/primitivetype.hpp index 70e942a58..c91e4f5c6 100644 --- a/lib/base/primitivetype.hpp +++ b/lib/base/primitivetype.hpp @@ -44,15 +44,15 @@ private: }; #define REGISTER_PRIMITIVE_TYPE(type) \ - namespace { namespace UNIQUE_NAME(prt) { \ - void RegisterPrimitiveType ## type(void) \ + namespace { namespace UNIQUE_NAME(prt) { namespace prt ## type { \ + void RegisterPrimitiveType(void) \ { \ icinga::Type::Ptr t = make_shared(#type); \ icinga::Type::Register(t); \ } \ \ - INITIALIZE_ONCE(RegisterPrimitiveType ## type); \ - } } + INITIALIZE_ONCE(RegisterPrimitiveType); \ + } } } }