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: