From 714e1cf605b20f558d87a7d3e32855dcb412f467 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 12 Aug 2022 22:46:56 +0200 Subject: [PATCH] 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. --- include/signal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/signal.h b/include/signal.h index a181cad..b965e2c 100644 --- a/include/signal.h +++ b/include/signal.h @@ -7,11 +7,10 @@ extern "C" { #include #include -#include /* C99 API. */ -typedef volatile atomic_int sig_atomic_t; +typedef int sig_atomic_t; /* Type of a signal handler.*/ typedef void (*__sighandler_t)(int);