Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
298177fd
Commit
298177fd
authored
Sep 25, 2017
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3813 from dabroz/feature-fix-date
Change DISABLE_STDIO to MRB_DISABLE_STDIO in mruby-time/time.c
parents
7450a774
e00b48be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-time/src/time.c
mrbgems/mruby-time/src/time.c
+3
-3
No files found.
mrbgems/mruby-time/src/time.c
View file @
298177fd
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment