Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ext/date/date_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "ruby/re.h"
#include <ctype.h>

#undef strncasecmp
#define strncasecmp STRNCASECMP

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);

Expand Down
3 changes: 3 additions & 0 deletions ext/date/date_strptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "ruby/re.h"
#include <ctype.h>

#undef strncasecmp
#define strncasecmp STRNCASECMP

static const char *day_names[] = {
"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday",
Expand Down
2 changes: 1 addition & 1 deletion ext/date/prereq.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.SUFFIXES: .list

.list.h:
gperf --ignore-case -C -c -P -p -j1 -i 1 -g -o -t -N $(*F) $< \
gperf --ignore-case -L ANSI-C -C -c -P -p -j1 -i 1 -g -o -t -N $(*F) $< \
| sed -f $(top_srcdir)/tool/gperf.sed \
> $(@F)

Expand Down
Loading