diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 19:45:37 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 19:47:20 +0100 |
commit | 9a11da9d33fa4497eeca978cc99dc9b8381d8e37 (patch) | |
tree | f3165a7e56b92e44794fe2c8fdcb378df8aee66f /src/common.h | |
parent | Nicer X macros (diff) | |
download | redshift-ng-9a11da9d33fa4497eeca978cc99dc9b8381d8e37.tar.gz redshift-ng-9a11da9d33fa4497eeca978cc99dc9b8381d8e37.tar.bz2 redshift-ng-9a11da9d33fa4497eeca978cc99dc9b8381d8e37.tar.xz |
cleanup + cast + use pipe2 on linux
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 <sys/stat.h> #include <sys/types.h> #include <dirent.h> @@ -37,7 +43,7 @@ #ifdef _POSIX_TIMERS # include <sys/time.h> #endif -#if defined(__WIN32__) || defined(_WIN32) +#ifdef WINDOWS # include <windows.h> #else # include <pwd.h> |