1 /* c-minmax.h: define INT_MIN, etc. Assume a 32-bit machine if the
4 Copyright 1992, 1993, 2008 Karl Berry.
5 Copyright 2005 Olaf Weber.
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with this library; if not, see <http://www.gnu.org/licenses/>. */
20 #ifndef KPATHSEA_C_MINMAX_H
21 #define KPATHSEA_C_MINMAX_H
23 #include <kpathsea/c-limits.h>
25 /* Declared in <limits.h> on ANSI C systems. If the system doesn't
26 define it, we use the minimum ANSI values -- except for `int'; we
27 assume 32-bit integers. */
30 #define SCHAR_MIN (-127)
40 #define SHRT_MIN (-32767)
43 #define SHRT_MAX 32767
46 #define USHRT_MAX 65535
50 #define INT_MIN (-2147483647)
53 #define INT_MAX 2147483647
56 #define UINT_MAX 4294967295
60 #define LONG_MIN INT_MIN
63 #define LONG_MAX INT_MAX
66 #define ULONG_MAX UINT_MAX
69 /* Declared in <float.h> on ANSI C systems. */
84 #endif /* not KPATHSEA_C_MINMAX_H */