| 1 |
/* c-limits.h: include the system parameter file. |
| 2 |
|
| 3 |
Copyright 1992, 1993, 1996, 2008 Karl Berry. |
| 4 |
Copyright 2005 Olaf Weber. |
| 5 |
|
| 6 |
This library is free software; you can redistribute it and/or |
| 7 |
modify it under the terms of the GNU Lesser General Public |
| 8 |
License as published by the Free Software Foundation; either |
| 9 |
version 2.1 of the License, or (at your option) any later version. |
| 10 |
|
| 11 |
This library is distributed in the hope that it will be useful, |
| 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
Lesser General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU Lesser General Public License |
| 17 |
along with this library; if not, see <http://www.gnu.org/licenses/>. */ |
| 18 |
|
| 19 |
#ifndef C_LIMITS_H |
| 20 |
#define C_LIMITS_H |
| 21 |
|
| 22 |
#ifdef HAVE_LIMITS_H |
| 23 |
#include <limits.h> |
| 24 |
#else |
| 25 |
#include <kpathsea/systypes.h> |
| 26 |
#ifdef HAVE_SYS_PARAM_H |
| 27 |
#include <sys/param.h> |
| 28 |
#endif |
| 29 |
#endif /* not HAVE_LIMITS_H */ |
| 30 |
|
| 31 |
/* Some systems may have the floating-point limits in the above. */ |
| 32 |
#if defined (HAVE_FLOAT_H) && !defined (FLT_MAX) |
| 33 |
#include <float.h> |
| 34 |
#endif |
| 35 |
|
| 36 |
#endif /* not C_LIMITS_H */ |