aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-19 20:46:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-19 20:46:02 -0700
commit501b729cd4baea52a9f6f3b33401037541619793 (patch)
tree4d1fa63cfaa2022b213638e2b4801cfca8acb8af
parent45bf4d99ac9d55b182c0aabbf9f2ae73f2c5a3f4 (diff)
fix test_iostream
-rw-r--r--src/library.js9
-rw-r--r--system/include/libcxx/ostream2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 077fe080..b099fd92 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4195,8 +4195,13 @@ LibraryManager.library = {
// libc++
- _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3___postset: 'try { __ZNSt3__14coutE = 1 } catch(e){}; try { __ZNSt3__14cerrE = 2 } catch(e){};',
- _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_: function(){},
+ $libcxx__postset: 'try { __ZNSt3__14coutE = 1 } catch(e){}; try { __ZNSt3__14cerrE = 2 } catch(e){};',
+ $libcxx: {},
+
+ _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPKv__deps: ['fputs', '$libcxx'],
+ _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPKv: function(stream, str) {
+ _fputs(str, _stdout); // XXX stderr etc.
+ },
// glibc
diff --git a/system/include/libcxx/ostream b/system/include/libcxx/ostream
index f1a3de9c..c70f3c15 100644
--- a/system/include/libcxx/ostream
+++ b/system/include/libcxx/ostream
@@ -204,6 +204,7 @@ protected:
basic_ostream() {} // extension, intentially does not initialize
};
+/*
template <class _CharT, class _Traits>
class _LIBCPP_VISIBLE basic_ostream<_CharT, _Traits>::sentry
{
@@ -1287,6 +1288,7 @@ operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
extern template class basic_ostream<char>;
extern template class basic_ostream<wchar_t>;
+*/
_LIBCPP_END_NAMESPACE_STD