Mercurial > hg > octave-kai > gnulib-hg
changeset 871:759a0cbe32e1
[!_STRTOL_ERROR]: Define the type `enum strtol_error'
only if it hasn't already been defined.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 25 Jan 1997 06:15:18 +0000 |
parents | 09bc76111e29 |
children | 6e9358a1ff93 |
files | lib/xstrtol.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/xstrtol.h +++ b/lib/xstrtol.h @@ -20,16 +20,19 @@ # define PARAMS(Args) () # endif +#ifndef _STRTOL_ERROR enum strtol_error { LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW }; typedef enum strtol_error strtol_error; +#endif strtol_error __xstrtol PARAMS ((const char *s, char **ptr, int base, __unsigned long int *val, const char *valid_suffixes)); +#undef _STRTOL_ERROR # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \ do \ { \