* include/ext/mt_allocator.h: thread_id is unused in non threaded
applications and now has a ifdef to remove it completely on
compilers without thread support. Include stdlib.h due to a
compiler warning on getenv().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77576
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-02-09 Stefan Olsson <stefan@xapa.se>
+
+ * include/ext/mt_allocator.h: thread_id is unused in non threaded
+ applications and now has a ifdef to remove it completely on
+ compilers without thread support. Include stdlib.h due to a
+ compiler warning on getenv().
+
2004-02-09 Paul Brook <paul@codesourcery.com>
* libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
#define _MT_ALLOCATOR_H 1
#include <new>
+#include <cstdlib>
#include <bits/functexcept.h>
#include <bits/gthr.h>
#include <bits/atomicity.h>
/*
* The thread id of the thread which has requested this block.
*/
+#ifdef __GTHREADS
size_t thread_id;
+#endif
};
struct bin_record