signal: make sig_atomic_t a normal int

Using the _Atomic types is technically more accurate, but equivalent in
practice (glibc uses a normal int) and a bit of a headache for C++
targets since _Atomic is replaced with std::atomic.
This commit is contained in:
Lephenixnoir 2022-08-12 22:46:56 +02:00
parent ed52c1d7c2
commit 714e1cf605
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 2 deletions

View File

@ -7,11 +7,10 @@ extern "C" {
#include <stddef.h>
#include <stdint.h>
#include <stdatomic.h>
/* C99 API. */
typedef volatile atomic_int sig_atomic_t;
typedef int sig_atomic_t;
/* Type of a signal handler.*/
typedef void (*__sighandler_t)(int);