From eef775dfcbe143cfbcbb679b5ccde36d8870af16 Mon Sep 17 00:00:00 2001 From: pelya Date: Mon, 20 Dec 2010 11:18:07 +0000 Subject: [PATCH] Disabled cin/cout/cerr because they are crashing at random --- project/jni/stlport/src/iostream.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/project/jni/stlport/src/iostream.cpp b/project/jni/stlport/src/iostream.cpp index 84195a0f2..a38fa3444 100644 --- a/project/jni/stlport/src/iostream.cpp +++ b/project/jni/stlport/src/iostream.cpp @@ -15,6 +15,14 @@ * modified is included with the above copyright notice. * */ + +/* Outputting anything to cout/cerr WILL CRASH YOUR PROGRAM on specific devices - + x5a/x6d Android 2.1 tablet, and some other tablets, + however the same code runs on my HTC Evo without problem. + So I've just disabled them altogether. +*/ +#ifndef ANDROID + #include "stlport_prefix.h" #include @@ -394,6 +402,8 @@ bool _STLP_CALL ios_base::sync_with_stdio(bool sync) { _STLP_END_NAMESPACE +#endif /* ANDROID */ + // Local Variables: // mode:C++ // End: