[ruby/date] Use locale insensitive casecmp
https://github.com/ruby/date/commit/cfbd6a6b13
This commit is contained in:
parent
7aafd3ed0e
commit
865a2027a1
@ -7,6 +7,9 @@
|
|||||||
#include "ruby/re.h"
|
#include "ruby/re.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#undef strncasecmp
|
||||||
|
#define strncasecmp STRNCASECMP
|
||||||
|
|
||||||
RUBY_EXTERN VALUE rb_int_positive_pow(long x, unsigned long y);
|
RUBY_EXTERN VALUE rb_int_positive_pow(long x, unsigned long y);
|
||||||
RUBY_EXTERN unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow);
|
RUBY_EXTERN unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow);
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
#include "ruby/re.h"
|
#include "ruby/re.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#undef strncasecmp
|
||||||
|
#define strncasecmp STRNCASECMP
|
||||||
|
|
||||||
static const char *day_names[] = {
|
static const char *day_names[] = {
|
||||||
"Sunday", "Monday", "Tuesday", "Wednesday",
|
"Sunday", "Monday", "Tuesday", "Wednesday",
|
||||||
"Thursday", "Friday", "Saturday",
|
"Thursday", "Friday", "Saturday",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user