From: Jim Meyering Date: Sat, 25 Jan 1997 06:15:18 +0000 (+0000) Subject: [!_STRTOL_ERROR]: Define the type `enum strtol_error' X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8452d7e082cc23bf11cb997e4385ecb853e1ac07;p=pspp [!_STRTOL_ERROR]: Define the type `enum strtol_error' only if it hasn't already been defined. --- diff --git a/lib/xstrtol.h b/lib/xstrtol.h index c5fad2fe82..5f351a7ba7 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 \ { \