From: David Edelsohn Date: Fri, 30 Jan 2004 17:45:01 +0000 (+0000) Subject: allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHR... X-Git-Tag: releases/gcc-4.0.0~10532 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25d244475b8dded27535ff2acaf0279725fba9fa;p=thirdparty%2Fgcc.git allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHREADS. * src/allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHREADS. From-SVN: r76977 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b0d610f6484c..0ce3f269b6d2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-01-30 David Edelsohn + + * src/allocator.cc: Protect _S_get_thread_id() and + _S_thread_key_destr() with #ifdef __GTHREADS. + 2004-01-30 Paolo Carlini Reshuffle performance testsuite. diff --git a/libstdc++-v3/src/allocator.cc b/libstdc++-v3/src/allocator.cc index c2f084711ea8..da1ee49966f7 100644 --- a/libstdc++-v3/src/allocator.cc +++ b/libstdc++-v3/src/allocator.cc @@ -46,11 +46,13 @@ namespace __gnu_cxx template void __mt_alloc::_S_init(); +#ifdef __GTHREADS template size_t __mt_alloc::_S_get_thread_id(); template void __mt_alloc::_S_thread_key_destr(void*); +#endif // Static members of __pool_alloc. template class __pool_alloc;