summaryrefslogtreecommitdiff
path: root/gcc/gthr.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-02 23:15:06 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-02 23:15:06 +0000
commit26fbb0d3efe8adff66b6e39b78e070e1e6b0d936 (patch)
treecdd606fee269c8fa842c9e363520972303eccd26 /gcc/gthr.h
parent13bd733250551cec3cba1d6cfa67a85532d883b3 (diff)
downloadgcc-26fbb0d3efe8adff66b6e39b78e070e1e6b0d936.tar.gz
* gthr.h: Support systems that don't have weak, but have threads.
* configure.in (*wrs-vxworks*): Use VxWorks threads by default. * gthr-vxworks.h: New file. * objc/thr-vxworks.h: Dummy file from thr-single.c for now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr.h')
-rw-r--r--gcc/gthr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gthr.h b/gcc/gthr.h
index 9c5365426bf..d1028cb58e9 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.h
@@ -83,10 +83,12 @@ Boston, MA 02111-1307, USA. */
#include "gthr-solaris.h"
/* Include GTHREAD_FILE if one is defined. */
-#elif SUPPORTS_WEAK && HAVE_GTHR_DEFAULT
+#elif defined(HAVE_GTHR_DEFAULT)
+#if SUPPORTS_WEAK
#ifndef GTHREAD_USE_WEAK
#define GTHREAD_USE_WEAK 1
#endif
+#endif
#include "gthr-default.h"
/* Fallback to single thread definitions. */