summaryrefslogtreecommitdiffstats
path: root/CryptoPP
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-26 16:36:08 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-26 16:36:08 +0200
commit987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6 (patch)
tree3f4b98edc89c12f8aa0a96303b32f0b5f5b50dcb /CryptoPP
parentAdded the block dig animation packet (patch contributed by l0udPL) (diff)
downloadcuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar.gz
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar.bz2
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar.lz
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar.xz
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.tar.zst
cuberite-987b6ac1232dbafd50b9a6a26fcf769f5bdcd0a6.zip
Diffstat (limited to 'CryptoPP')
-rw-r--r--CryptoPP/config.h2
-rw-r--r--CryptoPP/misc.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/CryptoPP/config.h b/CryptoPP/config.h
index 93a79ed3d..ba7c00110 100644
--- a/CryptoPP/config.h
+++ b/CryptoPP/config.h
@@ -243,7 +243,7 @@ NAMESPACE_END
# pragma warn -8037
#endif
-#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION)
+#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION) || defined(ANDROID_NDK)
#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
#endif
diff --git a/CryptoPP/misc.cpp b/CryptoPP/misc.cpp
index 3c2c2a5f0..93760e3a3 100644
--- a/CryptoPP/misc.cpp
+++ b/CryptoPP/misc.cpp
@@ -112,13 +112,14 @@ bool VerifyBufsEqual(const byte *buf, const byte *mask, size_t count)
return acc8 == 0;
}
-#if !(defined(_MSC_VER) && (_MSC_VER < 1300))
+#if !(defined(_MSC_VER) && (_MSC_VER < 1300)) && !defined(ANDROID_NDK)
using std::new_handler;
using std::set_new_handler;
#endif
void CallNewHandler()
{
+#if !defined(ANDROID_NDK)
new_handler newHandler = set_new_handler(NULL);
if (newHandler)
set_new_handler(newHandler);
@@ -127,6 +128,7 @@ void CallNewHandler()
newHandler();
else
throw std::bad_alloc();
+#endif
}
#if CRYPTOPP_BOOL_ALIGN16_ENABLED