summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-07-16 18:23:04 +0300
committerEli Zaretskii <eliz@gnu.org>2014-07-16 18:23:04 +0300
commit241787d8e4e0aa8b266ed4dd17b55c4def92981d (patch)
tree6205ce4e4aee07a50c187a393df64c505a6ca1cb
parentfaeeb27166942f6841a408ef22192153ff0cb253 (diff)
downloadgunmake-241787d8e4e0aa8b266ed4dd17b55c4def92981d.tar.gz
Fix compilation on MS-Windows.
* makeint.h [WINDOWS32]: Don't declare 'program' as 'const char *', since it is modified in 'main'.
-rw-r--r--makeint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index 45e63cb..5133cf1 100644
--- a/makeint.h
+++ b/makeint.h
@@ -609,7 +609,11 @@ extern double max_load_average;
extern int max_load_average;
#endif
+#ifdef WINDOWS32
+extern char *program;
+#else
extern const char *program;
+#endif
extern char *starting_directory;
extern unsigned int makelevel;
extern char *version_string, *remote_description, *make_host;