diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 19:53:47 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 19:53:47 +0100 |
commit | 066fac61e017824f7dccbd1ef3d7dc455cf4b95b (patch) | |
tree | b240eee9ec49ab3b83fe4978d3a0472def7251ce /src/redshift.c | |
parent | Merge config-ini.h and options.h into common.h (diff) | |
download | redshift-ng-066fac61e017824f7dccbd1ef3d7dc455cf4b95b.tar.gz redshift-ng-066fac61e017824f7dccbd1ef3d7dc455cf4b95b.tar.bz2 redshift-ng-066fac61e017824f7dccbd1ef3d7dc455cf4b95b.tar.xz |
Consistently use (locally defined) WINDOWS macro over mixing __WIN32__ and _WIN32
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/redshift.c b/src/redshift.c index b60236c..ca8e66b 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -22,7 +22,7 @@ /* poll.h is not available on Windows but there is no Windows location provider using polling. On Windows, we just define some stubs to make things compile. */ -#ifndef _WIN32 +#ifndef WINDOWS # include <poll.h> #else #define POLLIN 0 @@ -36,7 +36,7 @@ int poll(struct pollfd *fds, int nfds, int timeout) { abort(); return -1; } /* pause() is not defined on windows platform but is not needed either. Use a noop macro instead. */ -#ifdef __WIN32__ +#ifdef WINDOWS # define pause() #endif @@ -144,7 +144,7 @@ get_seconds_since_midnight(double timestamp) { time_t t = (time_t)timestamp; struct tm tm; -#ifdef _WIN32 +#ifdef WINDOWS localtime_s(&tm, &t); #else localtime_r(&t, &tm); |