diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-07-12 13:01:18 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-07-12 13:01:18 +0300 |
commit | 0a014e43228fae3bfba3241bc5820aafb41d4f67 (patch) | |
tree | 01b40e161fa26f0627dc503481a56396f51543b4 | |
parent | a8c3c6d83cbb988793141d8b28e137a284b6c2a9 (diff) | |
download | make-0a014e43228fae3bfba3241bc5820aafb41d4f67.tar.gz |
[SV 42695] Fix compilation error on MS-Windows.
* main.c [WINDOWS32]: Don't declare 'program' as 'const char *',
since it is modified in 'main'.
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -480,7 +480,13 @@ static struct command_variable *command_variables; /* The name we were invoked with. */ +#ifdef WINDOWS32 +/* On MS-Windows, we chop off the .exe suffix in 'main', so this + cannot be 'const'. */ +char *program; +#else const char *program; +#endif /* Our current directory before processing any -C options. */ |