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 083fdbc..c80fc32 100644 (file)
@@ -213,6 +213,17 @@ typedef int sig_atomic_t;
 
 
 /*
+ * 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 03141a4..4bbde0e 100644 (file)
@@ -220,6 +220,17 @@ typedef int sig_atomic_t;
 
 
 /*
+ * 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.
  */