summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/xindy-2.4/tex2xindy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/xindy/xindy-2.4/tex2xindy')
-rw-r--r--Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.c6
-rw-r--r--Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.l6
2 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.c b/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.c
index 232a58f2672..d2d573336e2 100644
--- a/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.c
+++ b/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.c
@@ -2,10 +2,10 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef WIN32
-# include <kpathsea/getopt.h>
# include <fcntl.h>
-# define YY_NO_UNISTD_H 1
-# ifdef W32TeX
+# ifndef __MINGW32__ /* this should be W32TeX */
+# include <kpathsea/getopt.h>
+# define YY_NO_UNISTD_H 1
# define __STDC_VERSION__ 199901L
# endif
#else
diff --git a/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.l b/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.l
index dd3ef7ee7e6..edb6ea41be3 100644
--- a/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.l
+++ b/Build/source/utils/xindy/xindy-2.4/tex2xindy/tex2xindy.l
@@ -95,10 +95,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include <stdio.h>
#include <stdlib.h>
#ifdef WIN32
-# include <kpathsea/getopt.h>
# include <fcntl.h>
-# define YY_NO_UNISTD_H 1
-# ifdef W32TeX
+# ifndef __MINGW32__ /* this should be W32TeX */
+# include <kpathsea/getopt.h>
+# define YY_NO_UNISTD_H 1
# define __STDC_VERSION__ 199901L
# endif
#else