From 3cc1855dff07f60c4a4d5b97c3d6794d53087207 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Jun 1999 18:54:42 +0000 Subject: 1999-06-13 Roland McGrath * cthreads.h (MACRO_BEGIN, MACRO_END): #undef before unconditionally redefining. Use GCC extension for statement expression with value 0. --- libthreads/cthreads.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'libthreads/cthreads.h') 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 + * + * * 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 * @@ -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. -- cgit v1.2.3