[前][次][番号順一覧][スレッド一覧]

ruby-changes:19238

From: nobu <ko1@a...>
Date: Fri, 15 Apr 2011 16:45:21 +0900 (JST)
Subject: [ruby-changes:19238] Ruby:r31277 (trunk): * include/ruby/win32.h (ftruncate, truncate): mingw64 misses

nobu	2011-04-14 21:21:04 +0900 (Thu, 14 Apr 2011)

  New Revision: 31277

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31277

  Log:
    * include/ruby/win32.h (ftruncate, truncate): mingw64 misses
      prototypes.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/win32.h

Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 31276)
+++ include/ruby/win32.h	(revision 31277)
@@ -384,13 +384,13 @@
 
 #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);
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31276)
+++ ChangeLog	(revision 31277)
@@ -1,5 +1,8 @@
-Thu Apr 14 21:20:51 2011  Nobuyoshi Nakada  <nobu@r...>
+Thu Apr 14 21:21:01 2011  Nobuyoshi Nakada  <nobu@r...>
 
+	* include/ruby/win32.h (ftruncate, truncate): mingw64 misses
+	  prototypes.
+
 	* win32/win32.c (rb_w32_read): suppress warning.
 
 Thu Apr 14 19:55:54 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]