diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-02 08:40:28 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-02 08:40:28 +0000 |
commit | 24367e4cfdd9a3290fb456069c26a508b769cef6 (patch) | |
tree | 2a375c9782fb340377d757654c870b786dcfdbdc /Build/source/texk/kpathsea/config.h | |
parent | 6409e03d423ca6b33a233312155c08637b18c597 (diff) |
bug fixes for mingw32 cross build
git-svn-id: svn://tug.org/texlive/trunk@12596 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/config.h')
-rw-r--r-- | Build/source/texk/kpathsea/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/config.h b/Build/source/texk/kpathsea/config.h index f4b6a93020f..33ce2db7c97 100644 --- a/Build/source/texk/kpathsea/config.h +++ b/Build/source/texk/kpathsea/config.h @@ -73,7 +73,21 @@ #define KPATHSEA 34 #endif +#ifdef __MINGW32__ +/* In mingw32, the eof() function is part of the !_NO_OLDNAMES section + of <io.h>, that is read in automatically via <unistd.h>. We cannot + allow that because web2c/lib/eofeoln.c defines a private, + incompatible function named eof(). + But many of the other things defined via !_NO_OLDNAMES are needed, + so #define _NO_OLDNAMES cannot be used. So, temporarily define eof + as a macro. +*/ +#define eof saved_eof #include <kpathsea/c-std.h> /* <stdio.h>, <math.h>, etc. */ +#undef eof +#else +#include <kpathsea/c-std.h> /* <stdio.h>, <math.h>, etc. */ +#endif #include <kpathsea/c-proto.h> /* Macros to discard or keep prototypes. */ |