ios_base.h (Init::_S_initialized): Change into declaration.

* include/bits/ios_base.h (Init::_S_initialized): Change into declaration.
* src/ios_init.cc (Init::_S_initialized): Add definition.

From-SVN: r74656
This commit is contained in:
Carlo Wood 2003-12-16 00:15:24 +00:00 committed by Carlo Wood
parent c98e7fe852
commit 91daef582a
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-12-15 Carlo Wood <carlo@alinoe.com>
* include/bits/ios_base.h (Init::_S_initialized): Change into
declaration.
* src/ios_init.cc (Init::_S_initialized): Add definition.
2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/12658

View File

@ -495,7 +495,7 @@ namespace std
// NB: Allows debugger applications use of the standard streams
// from operator new.
static bool
_S_initialized() { return _S_refcount > 0; }
_S_initialized();
private:
static _Atomic_word _S_refcount;

View File

@ -142,6 +142,12 @@ namespace std
}
}
bool
ios_base::Init::_S_initialized()
{
return _S_refcount > 0;
}
bool
ios_base::sync_with_stdio(bool __sync)
{