diff options
Diffstat (limited to 'src/hooks.c')
-rw-r--r-- | src/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks.c b/src/hooks.c index 1bd3efe..485f5f0 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -50,7 +50,7 @@ open_hooks_dir(char *hp) return opendir(hp); } -#ifndef _WIN32 +#ifndef WINDOWS struct passwd *pwd = getpwuid(getuid()); snprintf(hp, MAX_HOOK_PATH, "%s/.config/redshift/hooks", pwd->pw_dir); return opendir(hp); @@ -77,7 +77,7 @@ hooks_signal_period_change(enum period prev_period, enum period period) snprintf(hook_path, sizeof(hook_path), "%s/%s", hooksdir_path, hook_name); -#ifndef _WIN32 +#ifndef WINDOWS /* Fork and exec the hook. We close stdout so the hook cannot interfere with the normal output. */ |