gthr-dce.h: If _DCE_THREADS is not defined, then just include gthr-single.
authorJeffrey A Law <law@cygnus.com>
Fri, 30 Nov 2001 19:47:11 +0000 (19:47 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 30 Nov 2001 19:47:11 +0000 (12:47 -0700)
        * gthr-dce.h: If _DCE_THREADS is not defined, then just include
        gthr-single.

From-SVN: r47490

gcc/ChangeLog
gcc/gthr-dce.h

index ac2de5f6aba01fee1f0a07742e519d45a14429df..9a471c6473172dd613e2a9e989b7c151663a49d3 100644 (file)
@@ -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.
index 25eab0e5693a7a445a0ca04ee8ebe37d13c4e94b..afefaca7329bf80407dfaead9e82dfc59d9b99d2 100644 (file)
@@ -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 */