mirror of
https://github.com/mirror/make.git
synced 2025-01-14 22:30:39 +08: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
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 New Issue
Block a user