summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 22:49:55 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 22:49:55 +0000
commit49ed59fdec91bc9315b305d71d14036114ed9bfb (patch)
treebae58406aff881d65ae5caf16b021b929e1b0682 /include
parent48a3fa9005550e65ae9e21c794067d7d3b448d37 (diff)
merges r31277 from trunk into ruby_1_9_2.
-- * include/ruby/win32.h (ftruncate, truncate): mingw64 misses prototypes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/win32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 32de53f7ec..80842c3852 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -373,13 +373,13 @@ scalb(double a, long b)
#if !defined HAVE_FTRUNCATE || defined(_MSC_VER)
#define ftruncate rb_w32_ftruncate
-extern int rb_w32_ftruncate(int fd, off_t length);
#endif
+extern int ftruncate(int fd, off_t length);
#if !defined HAVE_TRUNCATE || defined(_MSC_VER)
#define truncate rb_w32_truncate
-extern int rb_w32_truncate(const char *path, off_t length);
#endif
+extern int truncate(const char *path, off_t length);
extern int fseeko(FILE *stream, off_t offset, int whence);