summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--include/ruby/win32.h4
-rw-r--r--version.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 25e74d86b3..96b1e74358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 14 21:21:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (ftruncate, truncate): mingw64 misses
+ prototypes.
+
Thu Apr 14 16:01:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* io.c (rb_f_syscall): reduce warning: "HAVE___SYSCALL" is not defined.
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);
diff --git a/version.h b/version.h
index 9ffc9cc7ee..97e1c8cfc3 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
-#define RUBY_PATCHLEVEL 228
+#define RUBY_PATCHLEVEL 229
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1