projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab353d
)
[SV 42695] Fix compilation error on MS-Windows.
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 12 Jul 2014 10:01:18 +0000
(13:01 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 12 Jul 2014 10:01:18 +0000
(13:01 +0300)
* main.c [WINDOWS32]: Don't declare 'program' as 'const char *',
since it is modified in 'main'.
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
e5f7d38
..
0508ae1
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-480,7
+480,13
@@
static struct command_variable *command_variables;
\f
/* 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. */