(fix of commit
cb1194d17)
* include/gc_cpp.h [GC_NEW_DELETE_NEED_THROW && __cplusplus>=201103L
&& !__clang__] (GC_DECL_NEW_THROW, GC_DECL_DELETE_THROW): Define to
empty.
#ifdef GC_NEW_DELETE_NEED_THROW
# include <new> /* for std::bad_alloc */
-# define GC_DECL_NEW_THROW throw(std::bad_alloc)
-# define GC_DECL_DELETE_THROW throw()
+# if __cplusplus >= 201103L && !defined(__clang__)
+# define GC_DECL_NEW_THROW /* empty */
+# define GC_DECL_DELETE_THROW /* empty */
+# else
+# define GC_DECL_NEW_THROW throw(std::bad_alloc)
+# define GC_DECL_DELETE_THROW throw()
+# endif
# define GC_OP_NEW_OOM_CHECK(obj) \
do { if (!(obj)) throw std::bad_alloc(); } while (0)
#else