aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorCarlo Wood <carlo@alinoe.com>2003-12-16 00:15:24 +0000
committerCarlo Wood <carlo@gcc.gnu.org>2003-12-16 00:15:24 +0000
commit91daef582a7ed85c48c3f2ee163130dceed26448 (patch)
tree0762b4f131ddb3391758ea42c939b1b8f716a26b /libstdc++-v3
parentc98e7fe852a0a47e1a88ac68528491af7889b706 (diff)
downloadgcc-91daef582a7ed85c48c3f2ee163130dceed26448.zip
gcc-91daef582a7ed85c48c3f2ee163130dceed26448.tar.gz
gcc-91daef582a7ed85c48c3f2ee163130dceed26448.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/bits/ios_base.h2
-rw-r--r--libstdc++-v3/src/ios_init.cc6
3 files changed, 13 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 70805f5..5e560e0 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index e2d3fba..ee64050 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 b402025..4f8ab7b 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)
{