summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-13 18:54:42 +0000
committerRoland McGrath <roland@gnu.org>1999-06-13 18:54:42 +0000
commit3cc1855dff07f60c4a4d5b97c3d6794d53087207 (patch)
tree33b66f362912aa2ca5ee63eb5cbd1fa896738898
parentf27215f23ed1a35676ce5aa966752fbd2d34eea2 (diff)
1999-06-13 Roland McGrath <roland@baalperazim.frob.com>
* cthreads.h (MACRO_BEGIN, MACRO_END): #undef before unconditionally redefining. Use GCC extension for statement expression with value 0.
-rw-r--r--libthreads/cthreads.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h
index c8752e3c..c15e0377 100644
--- a/libthreads/cthreads.h
+++ b/libthreads/cthreads.h
@@ -26,6 +26,11 @@
/*
* HISTORY
* $Log: cthreads.h,v $
+ * Revision 1.14 1999/05/30 01:39:48 roland
+ * 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
+ *
+ * * cthreads.h (mutex_clear): Change again, to call mutex_init.
+ *
* Revision 1.13 1999/05/29 18:59:10 roland
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
*
@@ -241,12 +246,12 @@ typedef char *any_t;
#define FALSE 0
#endif /* TRUE */
-#ifndef MACRO_BEGIN
-#define MACRO_BEGIN do {
-#define MACRO_END } while (0)
+#undef MACRO_BEGIN
+#undef MACRO_END
+#define MACRO_BEGIN __extension__ ({
+#define MACRO_END 0; })
-#endif MACRO_BEGIN
/*
* C Threads package initialization.