mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
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:
parent
c98e7fe852
commit
91daef582a
@ -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
|
||||
|
@ -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;
|
||||
|
@ -142,6 +142,12 @@ namespace std
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
ios_base::Init::_S_initialized()
|
||||
{
|
||||
return _S_refcount > 0;
|
||||
}
|
||||
|
||||
bool
|
||||
ios_base::sync_with_stdio(bool __sync)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user