diff options
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/missing.h | 4 | ||||
-rw-r--r-- | include/ruby/ruby.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 68cd844080..db32057779 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -133,10 +133,6 @@ extern long strtol(const char *, char **, int); #endif */ -#ifndef HAVE_STRTOUL -extern unsigned long strtoul(const char *, char **, int); -#endif - #ifndef HAVE_VSNPRINTF # include <stdarg.h> extern int snprintf(char *, size_t n, char const *, ...); diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 8ce623dfe3..c5184f7ca6 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -986,4 +986,7 @@ int rb_remove_event_hook(rb_event_hook_func_t func); #define STRCASECMP(s1, s2) (st_strcasecmp(s1, s2)) #define STRNCASECMP(s1, s2, n) (st_strncasecmp(s1, s2, n)) +unsigned long ruby_strtoul(const char *str, char **endptr, int base); +#define STRTOUL(str, endptr, base) (ruby_strtoul(str, endptr, base)) + #endif /* RUBY_H */ |