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
384209b8
Unverified
Commit
384209b8
authored
Mar 03, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time.c: fix compile errors in `mrb_time_asctime()`.
parent
18738412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mrbgems/mruby-time/src/time.c
mrbgems/mruby-time/src/time.c
+3
-4
No files found.
mrbgems/mruby-time/src/time.c
View file @
384209b8
...
@@ -694,14 +694,13 @@ mrb_time_asctime(mrb_state *mrb, mrb_value self)
...
@@ -694,14 +694,13 @@ mrb_time_asctime(mrb_state *mrb, mrb_value self)
int
len
;
int
len
;
#if defined(MRB_NO_STDIO)
#if defined(MRB_NO_STDIO)
char
*
s
;
# ifdef NO_ASCTIME_R
# ifdef NO_ASCTIME_R
s
=
asctime
(
d
);
char
*
buf
=
asctime
(
d
);
# else
# else
char
buf
[
32
];
char
buf
[
32
]
,
*
s
;
s
=
asctime_r
(
d
,
buf
);
s
=
asctime_r
(
d
,
buf
);
# endif
# endif
len
=
strlen
(
s
)
-
1
;
/* truncate the last newline */
len
=
strlen
(
buf
)
-
1
;
/* truncate the last newline */
#else
#else
char
buf
[
256
];
char
buf
[
256
];
...
...
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