diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 04:57:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 04:57:40 +0000 |
commit | 9ad26a3d24d359bb9a07eb8926df933f0a622f99 (patch) | |
tree | 4dfd02bd0299a4d455660df9791133acf158698b /include/ruby | |
parent | 8b04569c6edf2da4630a51e9d0b8115560f771cd (diff) | |
download | ruby-9ad26a3d24d359bb9a07eb8926df933f0a622f99.tar.gz |
* 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
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/win32.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index d468bb2664..97dae21176 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -139,7 +139,6 @@ extern DWORD rb_w32_osid(void); #define getppid() rb_w32_getppid() #define sleep(x) rb_w32_Sleep((x)*1000) #define Sleep(msec) (void)rb_w32_Sleep(msec) -#define fstat(fd,st) _fstati64(fd,st) #ifdef __BORLANDC__ #define creat(p, m) _creat(p, m) #define eof() _eof() @@ -175,6 +174,7 @@ extern DWORD rb_w32_osid(void); #if SIZEOF_OFF_T == 8 #define off_t __int64 #define stat stati64 +#define fstat(fd,st) _fstati64(fd,st) #if defined(__BORLANDC__) #define stati64(path, st) rb_w32_stati64(path, st) #elif !defined(_MSC_VER) || _MSC_VER < 1400 @@ -183,6 +183,7 @@ extern DWORD rb_w32_osid(void); #else #define stati64 _stat64 #define _stat64(path, st) rb_w32_stati64(path, st) +#define _fstati64 _fstat64 #endif #else #define stat(path,st) rb_w32_stat(path,st) |