summaryrefslogtreecommitdiff
path: root/Build/source/texk/detex/detex.l
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 12:09:38 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 12:09:38 +0000
commitb287d7f6a13823ea17e0bd415981d3a5953ca703 (patch)
treea420b28a35f7761f064d50bb610dbb2b46c71486 /Build/source/texk/detex/detex.l
parent5fd6fd3479fcbbda52ebca7b5e80a5aaa1add69f (diff)
build system: various small fixes for mingw32 cross compilation
still incomplete git-svn-id: svn://tug.org/texlive/trunk@17141 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/detex/detex.l')
-rw-r--r--Build/source/texk/detex/detex.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/detex/detex.l b/Build/source/texk/detex/detex.l
index 8e1752328ac..3d9a961dfa6 100644
--- a/Build/source/texk/detex/detex.l
+++ b/Build/source/texk/detex/detex.l
@@ -19,7 +19,6 @@ static char rcsid[] = "$Header: /p/src/local/bin/detex/RCS/detex.l,v 2.19 1997/0
#ifdef FPTEX
#include <win32lib.h>
#undef ERROR
-#undef IGNORE
#endif
#include "detex.h"
@@ -59,6 +58,8 @@ char *malloc();
#endif
+#undef IGNORE
+
void SetEnvIgnore(const char *sbEnvList);
int BeginEnv(const char *sbEnv);
int EndEnv(const char *sbEnv);
@@ -89,6 +90,9 @@ char *rgsbIncList[MAXINCLIST]; /* list of includeonly files */
char *rgsbInputPaths[MAXINPUTPATHS]; /* list of input paths in order */
char sbCurrentEnv[CCHMAXENV]; /* current environment being ignored */
char *sbProgName; /* name we were invoked with */
+#ifndef NOFILE /* might be defined in <sys/param.h> */
+#define NOFILE 256
+#endif
FILE *rgfp[NOFILE+1]; /* stack of input/include files */
int cfp = 0; /* count of files in stack */
int cOpenBrace = 0; /* count of `{' in <LaMacro2> */