diff options
author | Paul Smith <psmith@gnu.org> | 2023-01-15 18:27:13 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-01-15 18:27:13 -0500 |
commit | 6128c3e266940ebc3c5e5a4a54241354334d1ebc (patch) | |
tree | b322c061c1b04aceb25083e9ef3a0b16e9648df8 /src/variable.c | |
parent | ceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a (diff) | |
download | make-git-6128c3e266940ebc3c5e5a4a54241354334d1ebc.tar.gz |
Rename WINDOWS32 macro to MK_OS_W32
* configure.ac: Set MK_OS_W32 to 1 if we're on Windows32.
* src/config.h.W32: Ditto.
* mk/Windows32.mk: Ditto.
* src/makeint.h: Convert #if refs to WINDOWS32, to use MK_OS_W32.
* src/*: Ditto.
* src/w32/*: Ditto.
* gl/lib/*: Ditto.
Diffstat (limited to 'src/variable.c')
-rw-r--r-- | src/variable.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/variable.c b/src/variable.c index f9243afb..b3569461 100644 --- a/src/variable.c +++ b/src/variable.c @@ -26,7 +26,7 @@ this program. If not, see <https://www.gnu.org/licenses/>. */ #include "variable.h" #include "os.h" #include "rule.h" -#ifdef WINDOWS32 +#if MK_OS_W32 #include "pathstuff.h" #endif #include "hash.h" @@ -971,7 +971,7 @@ define_automatic_variables (void) /* Define the magic D and F variables in terms of the automatic variables they are variations of. */ -#if defined(__MSDOS__) || defined(WINDOWS32) +#if defined(__MSDOS__) || MK_OS_W32 /* For consistency, remove the trailing backslash as well as slash. */ define_variable_cname ("@D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $@)))", o_automatic, 1); @@ -987,7 +987,7 @@ define_automatic_variables (void) o_automatic, 1); define_variable_cname ("+D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $+)))", o_automatic, 1); -#else /* not __MSDOS__, not WINDOWS32 */ +#else /* not __MSDOS__, not MK_OS_W32 */ define_variable_cname ("@D", "$(patsubst %/,%,$(dir $@))", o_automatic, 1); define_variable_cname ("%D", "$(patsubst %/,%,$(dir $%))", o_automatic, 1); define_variable_cname ("*D", "$(patsubst %/,%,$(dir $*))", o_automatic, 1); @@ -1210,7 +1210,7 @@ target_environment (struct file *file, int recursive) } } -#ifdef WINDOWS32 +#if MK_OS_W32 if (streq (v->name, "Path") || streq (v->name, "PATH")) { if (!cp) @@ -1523,7 +1523,7 @@ do_variable_definition (const floc *flocp, const char *varname, } else #endif /* __MSDOS__ */ -#ifdef WINDOWS32 +#if MK_OS_W32 if ((origin == o_file || origin == o_override || origin == o_command) && streq (varname, "SHELL")) { @@ -2017,7 +2017,7 @@ print_target_variables (const struct file *file) } } -#ifdef WINDOWS32 +#if MK_OS_W32 void sync_Path_environment () { @@ -2028,7 +2028,7 @@ sync_Path_environment () if (!path) return; - /* Convert the value of PATH into something WINDOWS32 world can grok. + /* Convert the value of PATH into something Windows32 world can grok. Note: convert_Path_to_windows32 must see only the value of PATH, and see it from its first character, to do its tricky job. */ convert_Path_to_windows32 (path + CSTRLEN ("PATH="), ';'); |