diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 70805f5bb7b9..5e560e0bc980 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2003-12-15 Carlo Wood + + * 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 PR libstdc++/12658 diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index e2d3fbab62ec..ee6405070f75 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -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; diff --git a/libstdc++-v3/src/ios_init.cc b/libstdc++-v3/src/ios_init.cc index b40202553e53..4f8ab7bf324e 100644 --- a/libstdc++-v3/src/ios_init.cc +++ b/libstdc++-v3/src/ios_init.cc @@ -142,6 +142,12 @@ namespace std } } + bool + ios_base::Init::_S_initialized() + { + return _S_refcount > 0; + } + bool ios_base::sync_with_stdio(bool __sync) {