* #40116: Add zrtp related files, update libzrtpcpp
diff --git a/jni/libucommon/sources/inc/ucommon/cpr.h b/jni/libucommon/sources/inc/ucommon/cpr.h
index 0776ce5..c260ede 100644
--- a/jni/libucommon/sources/inc/ucommon/cpr.h
+++ b/jni/libucommon/sources/inc/ucommon/cpr.h
@@ -26,6 +26,9 @@
#include <ucommon/platform.h>
#endif
+
+#include <new>
+
#ifndef _UCOMMON_CPR_H_
#define _UCOMMON_CPR_H_
@@ -82,7 +85,7 @@
* @param size of object being constructed.
* @return memory allocated from heap.
*/
-inline void *operator new(size_t size)
+inline void *operator new(size_t size) throw(std::bad_alloc)
{return cpr_memalloc(size);}
/**
@@ -90,7 +93,7 @@
* @param size of memory needed for object array.
* @return memory allocated from heap.
*/
-inline void *operator new[](size_t size)
+inline void *operator new[](size_t size) throw(std::bad_alloc)
{return cpr_memalloc(size);}
#endif