diff options
author | Jim Meyering <jim@meyering.net> | 1997-01-25 06:15:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-01-25 06:15:18 +0000 |
commit | d73bc3ca57549c7ec714f4c855bffebd3d48d0e7 (patch) | |
tree | 0f67818ebb341dfffa86559d3f8072f6016918ed /lib/xstrtol.h | |
parent | 186d893f2797045ccd8c9abc13ea6cce36f19569 (diff) | |
download | coreutils-d73bc3ca57549c7ec714f4c855bffebd3d48d0e7.tar.xz |
[!_STRTOL_ERROR]: Define the type `enum strtol_error'
only if it hasn't already been defined.
Diffstat (limited to 'lib/xstrtol.h')
-rw-r--r-- | lib/xstrtol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xstrtol.h b/lib/xstrtol.h index c5fad2fe8..5f351a7ba 100644 --- 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 \ { \ |