Skip to content
Snippets Groups Projects
Commit 84c5e846 authored by Yang Tse's avatar Yang Tse
Browse files

convenience SIG_ATOMIC_T macro definition

parent 47f04426
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
......
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment