Mercurial > hg > octave-jordi > gnulib-hg
changeset 136:680d65ca01d4
GNU text utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 30 Oct 1993 15:54:52 +0000 |
parents | 49882d60eccf |
children | 153184fe3025 |
files | lib/strtol.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strtol.c +++ b/lib/strtol.c @@ -33,10 +33,17 @@ #if HAVE_LIMITS_H #include <limits.h> #endif + #ifndef ULONG_MAX +#define ULONG_MAX ((unsigned long) ~(unsigned long) 0) +#endif + +#ifndef LONG_MAX #define LONG_MAX (~(1 << (sizeof (long) * 8 - 1))) -#define LONG_MIN (-LONG_MAX-1) -#define ULONG_MAX ((unsigned long) ~(unsigned long) 0) +#endif + +#ifndef LONG_MIN +#define LONG_MIN (-LONG_MAX - 1) #endif #if STDC_HEADERS