mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/win32.h (fstat): override if large file support is
enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b04569c6e
commit
9ad26a3d24
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Sep 11 13:57:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/win32.h (fstat): override if large file support is
|
||||||
|
enabled.
|
||||||
|
|
||||||
Fri Sep 11 11:33:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Sep 11 11:33:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* tool/config.{guess,sub}: updated to automake-1.11.
|
* tool/config.{guess,sub}: updated to automake-1.11.
|
||||||
|
|
|
@ -139,7 +139,6 @@ extern DWORD rb_w32_osid(void);
|
||||||
#define getppid() rb_w32_getppid()
|
#define getppid() rb_w32_getppid()
|
||||||
#define sleep(x) rb_w32_Sleep((x)*1000)
|
#define sleep(x) rb_w32_Sleep((x)*1000)
|
||||||
#define Sleep(msec) (void)rb_w32_Sleep(msec)
|
#define Sleep(msec) (void)rb_w32_Sleep(msec)
|
||||||
#define fstat(fd,st) _fstati64(fd,st)
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#define creat(p, m) _creat(p, m)
|
#define creat(p, m) _creat(p, m)
|
||||||
#define eof() _eof()
|
#define eof() _eof()
|
||||||
|
@ -175,6 +174,7 @@ extern DWORD rb_w32_osid(void);
|
||||||
#if SIZEOF_OFF_T == 8
|
#if SIZEOF_OFF_T == 8
|
||||||
#define off_t __int64
|
#define off_t __int64
|
||||||
#define stat stati64
|
#define stat stati64
|
||||||
|
#define fstat(fd,st) _fstati64(fd,st)
|
||||||
#if defined(__BORLANDC__)
|
#if defined(__BORLANDC__)
|
||||||
#define stati64(path, st) rb_w32_stati64(path, st)
|
#define stati64(path, st) rb_w32_stati64(path, st)
|
||||||
#elif !defined(_MSC_VER) || _MSC_VER < 1400
|
#elif !defined(_MSC_VER) || _MSC_VER < 1400
|
||||||
|
@ -183,6 +183,7 @@ extern DWORD rb_w32_osid(void);
|
||||||
#else
|
#else
|
||||||
#define stati64 _stat64
|
#define stati64 _stat64
|
||||||
#define _stat64(path, st) rb_w32_stati64(path, st)
|
#define _stat64(path, st) rb_w32_stati64(path, st)
|
||||||
|
#define _fstati64 _fstat64
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define stat(path,st) rb_w32_stat(path,st)
|
#define stat(path,st) rb_w32_stat(path,st)
|
||||||
|
|
Loading…
Add table
Reference in a new issue