diff options
author | Roland McGrath <roland@gnu.org> | 1999-06-13 18:54:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-06-13 18:54:42 +0000 |
commit | 3cc1855dff07f60c4a4d5b97c3d6794d53087207 (patch) | |
tree | 33b66f362912aa2ca5ee63eb5cbd1fa896738898 /libthreads | |
parent | f27215f23ed1a35676ce5aa966752fbd2d34eea2 (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.
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cthreads.h | 13 |
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. |