From 9a11da9d33fa4497eeca978cc99dc9b8381d8e37 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 19:45:37 +0100 Subject: cleanup + cast + use pipe2 on linux 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, 7 insertions(+), 1 deletion(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 2633c83..0e0fd3b 100644 --- a/src/common.h +++ b/src/common.h @@ -20,6 +20,12 @@ #ifndef REDSHIFT_COMMON_H #define REDSHIFT_COMMON_H +#ifndef WINDOWS +# if defined(__WIN32__) || defined(_WIN32) +# define WINDOWS +# endif +#endif + #include #include #include @@ -37,7 +43,7 @@ #ifdef _POSIX_TIMERS # include #endif -#if defined(__WIN32__) || defined(_WIN32) +#ifdef WINDOWS # include #else # include -- cgit v1.2.3-70-g09d2