* include/ruby/win32.h (frexp, modf): original macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1adf7962be
commit
543ecd95d5
@ -717,7 +717,7 @@ uintptr_t rb_w32_asynchronize(asynchronous_func_t func, uintptr_t self, int argc
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __MINGW_ATTRIB_PURE
|
#ifdef __MINGW_ATTRIB_PURE
|
||||||
/* GPL */
|
/* License: Ruby's */
|
||||||
/* get rid of bugs in math.h of mingw */
|
/* get rid of bugs in math.h of mingw */
|
||||||
#define frexp(_X, _Y) __extension__ ({\
|
#define frexp(_X, _Y) __extension__ ({\
|
||||||
int intpart_frexp_bug = intpart_frexp_bug;\
|
int intpart_frexp_bug = intpart_frexp_bug;\
|
||||||
@ -725,7 +725,7 @@ uintptr_t rb_w32_asynchronize(asynchronous_func_t func, uintptr_t self, int argc
|
|||||||
*(_Y) = intpart_frexp_bug;\
|
*(_Y) = intpart_frexp_bug;\
|
||||||
result_frexp_bug;\
|
result_frexp_bug;\
|
||||||
})
|
})
|
||||||
/* GPL */
|
/* License: Ruby's */
|
||||||
#define modf(_X, _Y) __extension__ ({\
|
#define modf(_X, _Y) __extension__ ({\
|
||||||
double intpart_modf_bug = intpart_modf_bug;\
|
double intpart_modf_bug = intpart_modf_bug;\
|
||||||
double result_modf_bug = modf((_X), &intpart_modf_bug);\
|
double result_modf_bug = modf((_X), &intpart_modf_bug);\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user