mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
defines.h to missing.h. (couldn't use RUBY_EXTERN there.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f4e499de6c
commit
5574d874fb
3 changed files with 23 additions and 18 deletions
|
@ -133,22 +133,6 @@ void xfree(void*);
|
|||
#define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x"
|
||||
#define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
|
||||
|
||||
#ifdef INFINITY
|
||||
# define HAVE_INFINITY
|
||||
#else
|
||||
/** @internal */
|
||||
RUBY_EXTERN const unsigned char rb_infinity[];
|
||||
# define INFINITY (*(float *)rb_infinity)
|
||||
#endif
|
||||
|
||||
#ifdef NAN
|
||||
# define HAVE_NAN
|
||||
#else
|
||||
/** @internal */
|
||||
RUBY_EXTERN const unsigned char rb_nan[];
|
||||
# define NAN (*(float *)rb_nan)
|
||||
#endif
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#undef _WIN32
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue