summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/w2c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-01-18 11:18:30 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-01-18 11:18:30 +0000
commitd5b1d635e3cbfd4d919e11ec0bcb4fced2d7b212 (patch)
treecf13487ebe01f7931bea29e1136a37ea762a076f /Build/source/texk/web2c/w2c
parent31accee3d73f4b87a333844e128eb9258f5f8f11 (diff)
web2c: Printing of file offsets when sizeof(off_t) > sizeof(long)
git-svn-id: svn://tug.org/texlive/trunk@25140 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/w2c')
-rw-r--r--Build/source/texk/web2c/w2c/config.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/w2c/config.h b/Build/source/texk/web2c/w2c/config.h
index 4d325139138..eb6b916d9ec 100644
--- a/Build/source/texk/web2c/w2c/config.h
+++ b/Build/source/texk/web2c/w2c/config.h
@@ -1,6 +1,6 @@
/* w2c/config.h: All .c files include this first.
-Copyright 1995, 1996, 2006, 2007, 2009, 2010 Karl Berry.
+Copyright 1995, 1996, 2006, 2007, 2009, 2010, 2012 Karl Berry.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -75,6 +75,13 @@ typedef INTEGER_TYPE integer;
/* We need a type that's at least off_t wide */
typedef off_t longinteger;
+#if SIZEOF_LONG < SIZEOF_OFF_T
+#define LONGINTEGER_TYPE long long
+#define LONGINTEGER_PRId "lld"
+#else
+#define LONGINTEGER_TYPE long
+#define LONGINTEGER_PRId "ld"
+#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