From f68a45779d9ddaf6657d550a52fb4dd979f5b853 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 11 Apr 2007 11:02:13 +0000 Subject: convenience SIG_ATOMIC_T macro definition --- setup_once.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'setup_once.h') diff --git a/setup_once.h b/setup_once.h index 083fdbc..c80fc32 100644 --- a/setup_once.h +++ b/setup_once.h @@ -212,6 +212,17 @@ typedef int sig_atomic_t; #endif +/* + * Convenience SIG_ATOMIC_T definition + */ + +#ifdef HAVE_SIG_ATOMIC_T_VOLATILE +#define SIG_ATOMIC_T static sig_atomic_t +#else +#define SIG_ATOMIC_T static volatile sig_atomic_t +#endif + + /* * Default return type for signal handlers. */ -- cgit v1.2.3