Commit 298177fd authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3813 from dabroz/feature-fix-date

Change DISABLE_STDIO to MRB_DISABLE_STDIO in mruby-time/time.c
parents 7450a774 e00b48be
......@@ -10,7 +10,7 @@
#include <mruby/class.h>
#include <mruby/data.h>
#ifndef DISABLE_STDIO
#ifndef MRB_DISABLE_STDIO
#include <stdio.h>
#else
#include <string.h>
......@@ -173,7 +173,7 @@ static const mrb_timezone_name timezone_names[] = {
{ "LOCAL", sizeof("LOCAL") - 1 },
};
#ifndef DISABLE_STDIO
#ifndef MRB_DISABLE_STDIO
static const char mon_names[12][4] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
};
......@@ -541,7 +541,7 @@ mrb_time_asctime(mrb_state *mrb, mrb_value self)
struct tm *d = &tm->datetime;
int len;
#if defined(DISABLE_STDIO)
#if defined(MRB_DISABLE_STDIO)
char *s;
# ifdef NO_ASCTIME_R
s = asctime(d);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment