]> granicus.if.org Git - curl/commitdiff
convenience SIG_ATOMIC_T macro definition
authorYang Tse <yangsita@gmail.com>
Wed, 11 Apr 2007 11:02:13 +0000 (11:02 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 11 Apr 2007 11:02:13 +0000 (11:02 +0000)
ares/setup_once.h
lib/setup_once.h

index 083fdbc4f092a2ae26dfaa93ed675b68462cbabe..c80fc32d906cb3ff3f4071d1e8c3194563ed63a1 100644 (file)
@@ -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.
  */
index 03141a4ff97e74e06b4d5abc7d0d6d43610b7d97..4bbde0ec82140c412ed1e5ac911005b84254162e 100644 (file)
@@ -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.
  */