--- config.h.W32.template	2020-01-22 20:16:49.000000000 +0100
+++ config.h.W32.new	2020-01-24 08:24:06.352592200 +0100
@@ -102,7 +102,7 @@
 /* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
    and chdir().
    */
-#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
+#if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__TINYC__)) && !defined(__INTERIX)
 # define HAVE_DIRECT_H 1
 #endif
 
@@ -247,7 +247,7 @@
 #define HAVE_STDLIB_H 1
 
 /* Define to 1 if you have the 'strcasecmp' function. */
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__TINYC__)
 #define HAVE_STRCASECMP 1
 #endif
 
@@ -273,7 +273,7 @@
 #define HAVE_STRING_H 1
 
 /* Define to 1 if you have the 'strncasecmp' function. */
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__TINYC__)
 #define HAVE_STRNCASECMP 1
 #endif
 
@@ -305,7 +305,7 @@
 char *ttyname (int);
 
 /* Define to 1 if you have the `umask' function. */
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__TINYC__)
 # define HAVE_UMASK 1
 #endif
 
@@ -525,10 +525,14 @@
 
 /*
  * If you have a shell that does not grok 'sh -c quoted-command-line'
- * correctly, you need this setting. Please see below for specific
- * shell support.
+ * correctly, you need this setting which is the default for tcc.
+ * Please see below for specific shell support.
  */
+#if defined(__TINYC__)
+#define BATCH_MODE_ONLY_SHELL 1
+#else
 /*#define BATCH_MODE_ONLY_SHELL 1 */
+#endif
 
 /*
  * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
