From d5b1d635e3cbfd4d919e11ec0bcb4fced2d7b212 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Wed, 18 Jan 2012 11:18:30 +0000 Subject: 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 --- Build/source/texk/web2c/w2c/config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c/w2c') 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 -- cgit v1.2.3