aboutsummaryrefslogtreecommitdiffstats
path: root/src/config-ini.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 19:53:47 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 19:53:47 +0100
commit066fac61e017824f7dccbd1ef3d7dc455cf4b95b (patch)
treeb240eee9ec49ab3b83fe4978d3a0472def7251ce /src/config-ini.c
parentMerge config-ini.h and options.h into common.h (diff)
downloadredshift-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/config-ini.c')
-rw-r--r--src/config-ini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config-ini.c b/src/config-ini.c
index 2041db5..89d55d5 100644
--- a/src/config-ini.c
+++ b/src/config-ini.c
@@ -54,7 +54,7 @@ open_config_file(const char *filepath)
}
}
-#ifdef _WIN32
+#ifdef WINDOWS
if (f == NULL && (env = getenv("localappdata")) != NULL &&
env[0] != '\0') {
snprintf(cp, sizeof(cp),
@@ -74,7 +74,7 @@ open_config_file(const char *filepath)
f = fopen(cp, "r");
}
}
-#ifndef _WIN32
+#ifndef WINDOWS
if (f == NULL) {
struct passwd *pwd = getpwuid(getuid());