mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-25 04:35:44 +00:00
[SV 42695] Fix compilation error on MS-Windows.
* main.c [WINDOWS32]: Don't declare 'program' as 'const char *', since it is modified in 'main'.
This commit is contained in:
parent
cab353d1dd
commit
faeeb27166
1 changed files with 6 additions and 0 deletions
6
main.c
6
main.c
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue