Build fix for Windows

refs #9182
This commit is contained in:
Gunnar Beutner 2016-08-31 13:24:57 +02:00
parent 54f0cb2c2c
commit ba14c6e7ff

View File

@ -93,11 +93,11 @@ extern "C" I2_EXPORT void __cxa_throw(void *obj, TYPEINFO_TYPE *pvtinfo, void (*
void icinga::RethrowUncaughtException(void) void icinga::RethrowUncaughtException(void)
{ {
#if defined(__GLIBCXX__) && !defined(_WIN32) #if defined(__GLIBCXX__) || !defined(HAVE_CXXABI_H)
throw; throw;
#else /* __GLIBCXX__ || _WIN32 */ #else /* __GLIBCXX__ || !HAVE_CXXABI_H */
__cxa_throw(*l_LastExceptionObj.get(), *l_LastExceptionPvtInfo.get(), *l_LastExceptionDest.get()); __cxa_throw(*l_LastExceptionObj.get(), *l_LastExceptionPvtInfo.get(), *l_LastExceptionDest.get());
#endif /* __GLIBCXX__ || _WIN32 */ #endif /* __GLIBCXX__ || !HAVE_CXXABI_H */
} }
#ifdef HAVE_CXXABI_H #ifdef HAVE_CXXABI_H