]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Avoid compiler warnings with MinGW runtime 3.22.2
authorEli Zaretskii <eliz@gnu.org>
Thu, 6 Oct 2016 19:39:14 +0000 (22:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 6 Oct 2016 19:39:14 +0000 (22:39 +0300)
* main.c:
* job.c: Include strings.h, to get the prototypes of strcasecmp
and strncasecmp with latest MinGW runtime versions.
* config.h.W32.template (HAVE_STRINGS_H): Define.

config.h.W32.template
job.c
main.c

index d72e79a3aee7ed0b5a6fc33d6b3d4f046deb044d..450be4fb782a2ab1584103607b061234b2652353 100644 (file)
@@ -268,7 +268,7 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #define HAVE_STRICMP 1
 
 /* Define to 1 if you have the <strings.h> header file. */
-/* #define HAVE_STRINGS_H 1 */
+#define HAVE_STRINGS_H 1
 
 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1
diff --git a/job.c b/job.c
index f3a9fdbee835cfbbce7f2380debb9761228acdf3..4da0244ce80e1a3bd444c3cb5b8e64c4295e81cb 100644 (file)
--- a/job.c
+++ b/job.c
@@ -29,6 +29,7 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* Default shell to use.  */
 #ifdef WINDOWS32
+#include <strings.h>   /* for strcasecmp, strncasecmp */
 #include <windows.h>
 
 const char *default_shell = "sh.exe";
diff --git a/main.c b/main.c
index fa8045fd32f1c65d233b2feef80e6ffcac6a7412..a1703edc5e842b597b2b6b52fdc446de52c3e036 100644 (file)
--- a/main.c
+++ b/main.c
@@ -33,6 +33,7 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifdef WINDOWS32
 # include <windows.h>
 # include <io.h>
+# include <strings.h>  /* for strcasecmp */
 # include "pathstuff.h"
 # include "sub_proc.h"
 # include "w32err.h"