Permalink
Browse files

convenience SIG_ATOMIC_T macro definition

  • Loading branch information...
yangtse committed Apr 11, 2007
1 parent 140d6b0 commit f68a45779d9ddaf6657d550a52fb4dd979f5b853
Showing with 11 additions and 0 deletions.
  1. +11 −0 setup_once.h
View
@@ -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.
*/

0 comments on commit f68a457

Please sign in to comment.