summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/w2c
diff options
context:
space:
mode:
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