diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-30 19:47:11 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-30 19:47:11 +0000 |
commit | e8a5b0ad3c55aea7b716c2a67598902aebe693c4 (patch) | |
tree | 244832eda9aab1a7b1cbba38ac6e48f4139a1fac /gcc/gthr-dce.h | |
parent | bde7be7a8a4d1c370439e63fdd95b1f19d890fd8 (diff) | |
download | gcc-e8a5b0ad3c55aea7b716c2a67598902aebe693c4.tar.gz |
* gthr-dce.h: If _DCE_THREADS is not defined, then just include
gthr-single.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47490 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-dce.h')
-rw-r--r-- | gcc/gthr-dce.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h index 25eab0e5693..afefaca7329 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 */ |