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/config-ini.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/config-ini.c')
-rw-r--r-- | src/config-ini.c | 4 |
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()); |