diff options
Diffstat (limited to 'include/a2i/strtoi.h')
-rw-r--r-- | include/a2i/strtoi.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/a2i/strtoi.h b/include/a2i/strtoi.h index 9e4a1c2..ce6f8f0 100644 --- a/include/a2i/strtoi.h +++ b/include/a2i/strtoi.h @@ -17,15 +17,6 @@ #include <a2i/qual.h> -#define a2i_strtoImax(TYPE, ...) \ -( \ - _Generic((TYPE) 0, \ - intmax_t: strtoimax, \ - uintmax_t: strtoumax \ - )(__VA_ARGS__) \ -) - - #define a2i_strtoI(TYPE, s, endp, base, min, max, status) \ ({ \ const char *s_ = s; \ @@ -51,7 +42,10 @@ } else { \ errno_saved_ = errno; \ errno = 0; \ - n_ = a2i_strtoImax(TYPE, s_, endp_, base_); \ + n_ = _Generic((TYPE) 0, \ + intmax_t: strtoimax, \ + uintmax_t: strtoumax \ + )(s_, endp_, base_); \ \ if (*endp_ == s_) \ *status_ = ECANCELED; \ |