summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-30 17:45:01 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-30 17:45:01 +0000
commit57382a2185f19b25b0adad65034cb885b8bc61bc (patch)
treebb34b48ead2ce7993e0de2478996c46c2241d1df /libstdc++-v3
parent15ac28e345d99a23c05b3877dc9ea69339a7aa45 (diff)
downloadgcc-57382a2185f19b25b0adad65034cb885b8bc61bc.tar.gz
* src/allocator.cc: Protect _S_get_thread_id() and
_S_thread_key_destr() with #ifdef __GTHREADS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/src/allocator.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b0d610f6484..0ce3f269b6d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-30 David Edelsohn <edelsohn@gnu.org>
+
+ * src/allocator.cc: Protect _S_get_thread_id() and
+ _S_thread_key_destr() with #ifdef __GTHREADS.
+
2004-01-30 Paolo Carlini <pcarlini@suse.de>
Reshuffle performance testsuite.
diff --git a/libstdc++-v3/src/allocator.cc b/libstdc++-v3/src/allocator.cc
index c2f084711ea..da1ee49966f 100644
--- a/libstdc++-v3/src/allocator.cc
+++ b/libstdc++-v3/src/allocator.cc
@@ -46,11 +46,13 @@ namespace __gnu_cxx
template
void __mt_alloc<char>::_S_init();
+#ifdef __GTHREADS
template
size_t __mt_alloc<char>::_S_get_thread_id();
template
void __mt_alloc<char>::_S_thread_key_destr(void*);
+#endif
// Static members of __pool_alloc.
template class __pool_alloc<true, 0>;