remove HAVE_STRTOL

strtol is a C99 standard function.
This commit is contained in:
oni-link 2014-04-01 13:32:03 +02:00 committed by Thiago de Arruda
parent 38ff389496
commit 87a317e076
2 changed files with 0 additions and 5 deletions

View File

@ -65,7 +65,6 @@
#define HAVE_STRNCASECMP 1
// TODO: add proper cmake check
// #define HAVE_STROPTS_H 1
#define HAVE_STRTOL 1
#define HAVE_SVR4_PTYS 1
// TODO: add proper cmake check
// #define HAVE_SYSCONF 1

View File

@ -2970,13 +2970,9 @@ do_set (
i = 0;
if (*arg == '-')
i = 1;
#ifdef HAVE_STRTOL
value = strtol((char *)arg, NULL, 0);
if (arg[i] == '0' && TOLOWER_ASC(arg[i + 1]) == 'x')
i += 2;
#else
value = atol((char *)arg);
#endif
while (VIM_ISDIGIT(arg[i]))
++i;
if (arg[i] != NUL && !vim_iswhite(arg[i])) {