summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/io
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2004-04-07 03:33:36 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2004-04-07 03:33:36 +0000
commit563ae04fec9600d282f6d88f6cb6da761a884e7d (patch)
treead02d4c4a12269ff2a6bf0e7f64ebfe31ed3d48b /libstdc++-v3/config/io
parent9104315af86a209017083fddd11e8a8da5a350ae (diff)
downloadgcc-563ae04fec9600d282f6d88f6cb6da761a884e7d.tar.gz
Fixups for EDG front end.
2004-04-06 Benjamin Kosnik <bkoz@redhat.com> Fixups for EDG front end. * include/ext/rope: Instead of non-existent function _Data_allocate, use allocator's allocate. Use this. (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag enumerations from _Rope_RopeRep here. * include/ext/ropeimpl.h: Same. * src/ext-inst.cc (_S_min_len): Fix up definition. * config/locale/gnu/ctype_members.cc: Qualify base class members with this. * config/locale/generic/ctype_members.cc: Same. * config/locale/gnu/messages_members.h: Same. * config/locale/generic/messages_members.h: Same. * src/ctype.cc: Same. * include/bits/codecvt.h: Same. * include/bits/boost_concept_check.h: Declare. (__error_type_must_be_an_unsigned_integer_type): Remove this. (__error_type_must_be_an_integer_type): Remove this. (__error_type_must_be_a_signed_integer_type): Remove this. * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast. * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception specification to definition. (__cxa_allocate_exception): Same. * libsupc++/eh_catch.cc (__cxa_begin_catch): Same. * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same. (__cxa_get_globals): Same. * libsupc++/del_op.cc: Add comment about freestanding. From-SVN: r80475
Diffstat (limited to 'libstdc++-v3/config/io')
-rw-r--r--libstdc++-v3/config/io/basic_file_stdio.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc
index 53c1a26a472..224a2f6bd6a 100644
--- a/libstdc++-v3/config/io/basic_file_stdio.cc
+++ b/libstdc++-v3/config/io/basic_file_stdio.cc
@@ -202,12 +202,12 @@ namespace std
{
__basic_file* __ret = NULL;
const char* __c_mode = __gnu_internal::fopen_mode(__mode);
- if (__c_mode && !this->is_open()
- && (_M_cfile = fdopen(__fd, __c_mode)))
+ if (__c_mode && !this->is_open() && (_M_cfile = fdopen(__fd, __c_mode)))
{
+ char* __buf = NULL;
_M_cfile_created = true;
if (__fd == 0)
- setvbuf(_M_cfile, reinterpret_cast<char*>(NULL), _IONBF, 0);
+ setvbuf(_M_cfile, __buf, _IONBF, 0);
__ret = this;
}
return __ret;