From 066fac61e017824f7dccbd1ef3d7dc455cf4b95b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 19:53:47 +0100 Subject: Consistently use (locally defined) WINDOWS macro over mixing __WIN32__ and _WIN32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 746238d..e63e15b 100644 --- a/src/common.h +++ b/src/common.h @@ -249,12 +249,12 @@ void pipeutils_signal(int write_fd); void pipeutils_handle_signal(int read_fd); -#if !defined(__WIN32__) -extern volatile sig_atomic_t exiting; -extern volatile sig_atomic_t disable; -#else +#ifdef WINDOWS extern int exiting; extern int disable; +#else +extern volatile sig_atomic_t exiting; +extern volatile sig_atomic_t disable; #endif int signals_install_handlers(void); -- cgit v1.2.3-70-g09d2