diff options
author | Jeffrey A Law <law@cygnus.com> | 2001-11-30 19:47:11 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2001-11-30 12:47:11 -0700 |
commit | c36b1123ae1494fd77576733b02632ac4107bd89 (patch) | |
tree | 244832eda9aab1a7b1cbba38ac6e48f4139a1fac /gcc | |
parent | 1d3d6b1e6db42c2a95d1136431c6c6eee78ea93f (diff) | |
download | gcc-c36b1123ae1494fd77576733b02632ac4107bd89.zip gcc-c36b1123ae1494fd77576733b02632ac4107bd89.tar.gz gcc-c36b1123ae1494fd77576733b02632ac4107bd89.tar.bz2 |
gthr-dce.h: If _DCE_THREADS is not defined, then just include gthr-single.
* gthr-dce.h: If _DCE_THREADS is not defined, then just include
gthr-single.
From-SVN: r47490
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gthr-dce.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac2de5f..9a471c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 30 12:48:26 2001 Jeffrey A Law (law@cygnus.com) + + * gthr-dce.h: If _DCE_THREADS is not defined, then just include + gthr-single. + 2001-11-30 Jason Merrill <jason@redhat.com> * dwarf2out.c (is_cxx): New fn. diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h index 25eab0e..afefaca 100644 --- a/gcc/gthr-dce.h +++ b/gcc/gthr-dce.h @@ -29,6 +29,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_GTHR_DCE_H #define GCC_GTHR_DCE_H +/* If _DCE_THREADS is not defined, then we're building the single + threaded version of the libraries and do not want to reference + anything related to pthreads or dce. */ +#ifndef _DCE_THREADS +#include "gthr-single.h" +#else /* DCE threads interface. DCE threads are based on POSIX threads draft 4, and many things have changed since then. */ @@ -487,4 +493,5 @@ __gthread_mutex_unlock (__gthread_mutex_t *mutex) #undef UNUSED +#endif #endif /* ! GCC_GTHR_DCE_H */ |