allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHR...
authorDavid Edelsohn <edelsohn@gnu.org>
Fri, 30 Jan 2004 17:45:01 +0000 (17:45 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 30 Jan 2004 17:45:01 +0000 (12:45 -0500)
        * src/allocator.cc: Protect _S_get_thread_id() and
        _S_thread_key_destr() with #ifdef __GTHREADS.

From-SVN: r76977

libstdc++-v3/ChangeLog
libstdc++-v3/src/allocator.cc

index b0d610f6484c7c4857507c684b97d3b40c7bab94..0ce3f269b6d24cb5135575a5e750bb17ae6c8936 100644 (file)
@@ -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.
index c2f084711ea80343114df692e39a469e59973d1c..da1ee49966f7214dba11e4b2ded9de6661962150 100644 (file)
@@ -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>;