diff options
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/w2c/config.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index 59364986990..f3538016a91 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,8 @@ +2014-09-25 Peter Breitenlohner <peb@mppmu.mpg.de> + + * w2c/config.h: Bug fix: integer64 must always a be 64bit type, + even when long and off_t are not (detected by Norbert Preinig). + 2014-09-16 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am: Include fragments libmputil.am and pmpost.am. diff --git a/Build/source/texk/web2c/w2c/config.h b/Build/source/texk/web2c/w2c/config.h index 9aa4a96237f..d3f15e8f09a 100644 --- a/Build/source/texk/web2c/w2c/config.h +++ b/Build/source/texk/web2c/w2c/config.h @@ -93,8 +93,12 @@ typedef off_t longinteger; #define LONGINTEGER_PRI "l" #endif -/* We also need a genuine 64-bit integer type, in case of 32-bit off_t */ -typedef LONGINTEGER_TYPE integer64; +/* We also need a genuine 64-bit integer type. */ +#if defined(WIN32) +typedef __int64 integer64; +#else +typedef int64_t integer64; +#endif /* I don't want to write a configure test for remove when all Unix machines have unlink. But, for the sake of non-Unix machines that |