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 (ftruncate, truncate): mingw64 misses

prototypes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-04-14 12:21:04 +00:00
parent b8bcb6474c
commit f777225e09
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Thu Apr 14 21:20:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
Thu Apr 14 21:21:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h (ftruncate, truncate): mingw64 misses
prototypes.
* win32/win32.c (rb_w32_read): suppress warning.

View file

@ -384,13 +384,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);