} else if (DOIT) \
_buffer.__routine (_buffer.__arg)
+/* __libc_cleanup_push and __libc_cleanup_pop depend on exception
+ handling and stack unwinding. */
+#ifdef __EXCEPTIONS
/* Normal cleanup handling, based on C cleanup attribute. */
__extern_inline void
f->__cancel_routine (f->__cancel_arg);
}
-#define __libc_cleanup_push(fct, arg) \
+# define __libc_cleanup_push(fct, arg) \
do { \
struct __pthread_cleanup_frame __clframe \
__attribute__ ((__cleanup__ (__libc_cleanup_routine))) \
= { .__cancel_routine = (fct), .__cancel_arg = (arg), \
.__do_it = 1 };
-#define __libc_cleanup_pop(execute) \
+# define __libc_cleanup_pop(execute) \
__clframe.__do_it = (execute); \
} while (0)
-
+#endif /* __EXCEPTIONS */
/* Create thread-specific key. */
#define __libc_key_create(KEY, DESTRUCTOR) \