From: Yang Tse Date: Wed, 11 Apr 2007 11:02:13 +0000 (+0000) Subject: convenience SIG_ATOMIC_T macro definition X-Git-Tag: curl-7_16_2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84c5e846b335f6dc760afb139be31b67aa708687;p=thirdparty%2Fcurl.git convenience SIG_ATOMIC_T macro definition --- diff --git a/ares/setup_once.h b/ares/setup_once.h index 083fdbc4f0..c80fc32d90 100644 --- a/ares/setup_once.h +++ b/ares/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. */ diff --git a/lib/setup_once.h b/lib/setup_once.h index 03141a4ff9..4bbde0ec82 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -219,6 +219,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. */