Avoid compiler warnings with MinGW runtime 3.22.2

* 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.
This commit is contained in:
Eli Zaretskii 2016-10-06 22:39:14 +03:00
parent 6f339b22eb
commit 0b41373312
3 changed files with 3 additions and 1 deletions

View 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

1
job.c
View file

@ -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";

1
main.c
View file

@ -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"