diff options
author | luislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-11 16:38:10 +0000 |
---|---|---|
committer | luislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-11 16:38:10 +0000 |
commit | c2bfeaa2449671a4dcea16e09c6bc3e7c7095456 (patch) | |
tree | b6395864ca824527dbb7b196b7ca48f310cc7735 /win32 | |
parent | 0f771e33e2c3be4bc6316d6f4a930ba67ed0a9a3 (diff) | |
download | ruby-c2bfeaa2449671a4dcea16e09c6bc3e7c7095456.tar.gz |
Evaluate truncate, ftruncate and ftello existence
This corrects mingw-w64 compilation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c index 2e92665275..f87cf8b696 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4318,7 +4318,7 @@ rb_chsize(HANDLE h, off_t size) } int -truncate(const char *path, off_t length) +rb_w32_truncate(const char *path, off_t length) { HANDLE h; int ret; @@ -4344,7 +4344,7 @@ truncate(const char *path, off_t length) } int -ftruncate(int fd, off_t length) +rb_w32_ftruncate(int fd, off_t length) { HANDLE h; @@ -4417,7 +4417,7 @@ fseeko(FILE *stream, off_t offset, int whence) } off_t -ftello(FILE *stream) +rb_w32_ftello(FILE *stream) { off_t pos; if (fgetpos(stream, (fpos_t *)&pos)) return (off_t)-1; |