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
2fbea74d
Unverified
Commit
2fbea74d
authored
Dec 23, 2018
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Dec 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4198 from dearblue/missing-macros
Suppress missing macro warns
parents
f6c07b88
0bfeefad
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
include/mruby.h
include/mruby.h
+1
-1
include/mruby/common.h
include/mruby/common.h
+1
-1
mrbgems/mruby-io/src/io.c
mrbgems/mruby-io/src/io.c
+4
-4
mrbgems/mruby-math/src/math.c
mrbgems/mruby-math/src/math.c
+4
-0
mrbgems/mruby-time/src/time.c
mrbgems/mruby-time/src/time.c
+1
-1
No files found.
include/mruby.h
View file @
2fbea74d
...
...
@@ -57,7 +57,7 @@
#define mrb_assert_int_fit(t1,n,t2,max) ((void)0)
#endif
#if __STDC_VERSION__ >= 201112L
#if
defined __STDC_VERSION__ &&
__STDC_VERSION__ >= 201112L
#define mrb_static_assert(exp, str) _Static_assert(exp, str)
#else
#define mrb_static_assert(exp, str) mrb_assert(exp)
...
...
include/mruby/common.h
View file @
2fbea74d
...
...
@@ -34,7 +34,7 @@
MRB_BEGIN_DECL
/** Declare a function that never returns. */
#if __STDC_VERSION__ >= 201112L
#if
defined __STDC_VERSION__ &&
__STDC_VERSION__ >= 201112L
# define mrb_noreturn _Noreturn
#elif defined __GNUC__ && !defined __STRICT_ANSI__
# define mrb_noreturn __attribute__((noreturn))
...
...
mrbgems/mruby-io/src/io.c
View file @
2fbea74d
...
...
@@ -209,7 +209,7 @@ mrb_fd_cloexec(mrb_state *mrb, int fd)
#endif
}
#if !defined(_WIN32) && !
TARGET_OS_IPHONE
#if !defined(_WIN32) && !
(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
static
int
mrb_cloexec_pipe
(
mrb_state
*
mrb
,
int
fildes
[
2
])
{
...
...
@@ -403,7 +403,7 @@ mrb_io_s_popen(mrb_state *mrb, mrb_value klass)
DATA_PTR
(
io
)
=
fptr
;
return
io
;
}
#elif TARGET_OS_IPHONE
#elif
defined(TARGET_OS_IPHONE) &&
TARGET_OS_IPHONE
mrb_value
mrb_io_s_popen
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
...
...
@@ -1011,7 +1011,7 @@ mrb_io_read_data_pending(mrb_state *mrb, mrb_value io)
return
0
;
}
#if !defined(_WIN32) && !
TARGET_OS_IPHONE
#if !defined(_WIN32) && !
(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
static
mrb_value
mrb_io_s_pipe
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
...
...
@@ -1313,7 +1313,7 @@ mrb_init_io(mrb_state *mrb)
mrb_define_class_method
(
mrb
,
io
,
"for_fd"
,
mrb_io_s_for_fd
,
MRB_ARGS_ANY
());
mrb_define_class_method
(
mrb
,
io
,
"select"
,
mrb_io_s_select
,
MRB_ARGS_ANY
());
mrb_define_class_method
(
mrb
,
io
,
"sysopen"
,
mrb_io_s_sysopen
,
MRB_ARGS_ANY
());
#if !defined(_WIN32) && !
TARGET_OS_IPHONE
#if !defined(_WIN32) && !
(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
mrb_define_class_method
(
mrb
,
io
,
"_pipe"
,
mrb_io_s_pipe
,
MRB_ARGS_NONE
());
#endif
...
...
mrbgems/mruby-math/src/math.c
View file @
2fbea74d
...
...
@@ -161,6 +161,10 @@ erfc(double x)
#endif
#if defined __FreeBSD__ && !defined __FreeBSD_version
#include <osreldate.h>
/* for __FreeBSD_version */
#endif
#if (defined _MSC_VER && _MSC_VER < 1800) || defined __ANDROID__ || (defined __FreeBSD__ && __FreeBSD_version < 803000)
double
...
...
mrbgems/mruby-time/src/time.c
View file @
2fbea74d
...
...
@@ -46,7 +46,7 @@ double round(double x) {
/* #define NO_GMTIME_R */
#ifdef _WIN32
#if _MSC_VER
#if
def
_MSC_VER
/* Win32 platform do not provide gmtime_r/localtime_r; emulate them using gmtime_s/localtime_s */
#define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL)
#define localtime_r(tp, tm) ((localtime_s((tm), (tp)) == 0) ? (tm) : NULL)
...
...
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