mirror of https://github.com/Icinga/icinga2.git
Build fix for RHEL 5
This commit is contained in:
parent
a1c905bf62
commit
6cafce5d7e
|
@ -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); \
|
||||
} } }
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue