1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/win32.h (finite, scalb): inline'ed non-standard

identifier macros.  [ruby-core:2234]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-10-20 07:43:17 +00:00
parent 7bf5211220
commit a07dbf0ee9
2 changed files with 18 additions and 9 deletions

View file

@ -1,3 +1,8 @@
Tue Oct 20 16:41:18 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/win32.h (finite, scalb): inline'ed non-standard
identifier macros. [ruby-core:2234]
Tue Oct 20 15:38:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Tue Oct 20 15:38:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (ripper_intern): enable literal optimization. * parse.y (ripper_intern): enable literal optimization.

View file

@ -154,14 +154,14 @@ extern DWORD rb_w32_osid(void);
#define fdopen(h, m) rb_w32_fdopen(h, m) #define fdopen(h, m) rb_w32_fdopen(h, m)
#undef fsopen #undef fsopen
#define fsopen(p, m, sh) rb_w32_fsopen(p, m, sh) #define fsopen(p, m, sh) rb_w32_fsopen(p, m, sh)
#endif #endif /* __BORLANDC__ */
#undef execv #undef execv
#define execv(path,argv) rb_w32_aspawn(P_OVERLAY,path,argv) #define execv(path,argv) rb_w32_aspawn(P_OVERLAY,path,argv)
#if !defined(__BORLANDC__) #if !defined(__BORLANDC__)
#undef isatty #undef isatty
#define isatty(h) rb_w32_isatty(h) #define isatty(h) rb_w32_isatty(h)
#endif #endif /* __BORLANDC__ */
#undef mkdir #undef mkdir
#define mkdir(p, m) rb_w32_mkdir(p, m) #define mkdir(p, m) rb_w32_mkdir(p, m)
@ -169,7 +169,7 @@ extern DWORD rb_w32_osid(void);
#define rmdir(p) rb_w32_rmdir(p) #define rmdir(p) rb_w32_rmdir(p)
#undef unlink #undef unlink
#define unlink(p) rb_w32_unlink(p) #define unlink(p) rb_w32_unlink(p)
#endif #endif /* RUBY_EXPORT */
#if SIZEOF_OFF_T == 8 #if SIZEOF_OFF_T == 8
#define off_t __int64 #define off_t __int64
@ -294,15 +294,19 @@ extern FILE *rb_w32_fsopen(const char *, const char *, int);
#ifndef isnan #ifndef isnan
#define isnan(x) _isnan(x) #define isnan(x) _isnan(x)
#endif #endif
#ifndef finite static inline int
#define finite(x) _finite(x) finite(double x)
#endif {
return _finite(x);
}
#ifndef copysign #ifndef copysign
#define copysign(a, b) _copysign(a, b) #define copysign(a, b) _copysign(a, b)
#endif #endif
#ifndef scalb static inline double
#define scalb(a, b) _scalb(a, b) scalb(double a, long b)
#endif {
return _scalb(a, b);
}
#endif #endif
#if !defined S_IFIFO && defined _S_IFIFO #if !defined S_IFIFO && defined _S_IFIFO