Build fix for RHEL 5

This commit is contained in:
Gunnar Beutner 2014-11-04 11:17:14 +01:00
parent a1c905bf62
commit 6cafce5d7e
1 changed files with 4 additions and 4 deletions

View File

@ -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<PrimitiveType>(#type); \
icinga::Type::Register(t); \
} \
\
INITIALIZE_ONCE(RegisterPrimitiveType ## type); \
} }
INITIALIZE_ONCE(RegisterPrimitiveType); \
} } }
}