summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/config.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-23 20:51:29 +0000
committerKarl Berry <karl@freefriends.org>2007-10-23 20:51:29 +0000
commit98d57998af9f14a2120a8b9f9fe302ce4587d99c (patch)
tree52872e6e8655a62aea40e831a1b4ed7ea9f6b217 /Build/source/texk/web2c/config.h
parent9aa61a80b025f019899bf6ae5b2a95d05b3c0e34 (diff)
longinteger for >2gb pdf output; from Martin
git-svn-id: svn://tug.org/texlive/trunk@5261 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/config.h')
-rw-r--r--Build/source/texk/web2c/config.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/config.h b/Build/source/texk/web2c/config.h
index cb68a6a9c1e..427636d0c2f 100644
--- a/Build/source/texk/web2c/config.h
+++ b/Build/source/texk/web2c/config.h
@@ -1,6 +1,6 @@
/* config.h: All .c files include this first.
-Copyright (C) 1995, 1996, 2006 Karl Berry.
+Copyright (C) 1995, 1996, 2006, 2007 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
@@ -13,8 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+along with this program; if not, see <http://www.gnu.org/licenses/. */
#ifndef WEB2C_CONFIG_H
#define WEB2C_CONFIG_H
@@ -90,6 +89,22 @@ typedef SCHAR_TYPE schar;
#endif /* not INTEGER_TYPE */
typedef INTEGER_TYPE integer;
+
+/* We need a type that's at least 64 bits wide. */
+#if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
+ /* C99; this is easy */
+ #include <stdint.h>
+ #define LONGINTEGER_TYPE int_least64_t
+ #define LONGINTEGER_MAX INT_LEAST64_MAX
+ #define LONGINTEGER_MIN INT_LEAST64_MIN
+#else
+ /* C++ or <C99; let's hope long is 64bit */
+ #define LONGINTEGER_TYPE long
+ #define LONGINTEGER_MAX LONG_MAX
+ #define LONGINTEGER_MIN LONG_MIN
+#endif
+typedef LONGINTEGER_TYPE longinteger;
+
/* 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