Build fix for RHEL 5

This commit is contained in:
Gunnar Beutner 2014-11-04 11:17:14 +01:00
parent a1c905bf62
commit 6cafce5d7e

View File

@ -44,15 +44,15 @@ private:
}; };
#define REGISTER_PRIMITIVE_TYPE(type) \ #define REGISTER_PRIMITIVE_TYPE(type) \
namespace { namespace UNIQUE_NAME(prt) { \ namespace { namespace UNIQUE_NAME(prt) { namespace prt ## type { \
void RegisterPrimitiveType ## type(void) \ void RegisterPrimitiveType(void) \
{ \ { \
icinga::Type::Ptr t = make_shared<PrimitiveType>(#type); \ icinga::Type::Ptr t = make_shared<PrimitiveType>(#type); \
icinga::Type::Register(t); \ icinga::Type::Register(t); \
} \ } \
\ \
INITIALIZE_ONCE(RegisterPrimitiveType ## type); \ INITIALIZE_ONCE(RegisterPrimitiveType); \
} } } } }
} }