mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
remove HAVE_STRTOL
strtol is a C99 standard function.
This commit is contained in:
parent
38ff389496
commit
87a317e076
@ -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
|
||||
|
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user