ruby-changes:19225
From: usa <ko1@a...>
Date: Tue, 12 Apr 2011 10:39:46 +0900 (JST)
Subject: [ruby-changes:19225] Ruby:r31264 (trunk): * include/ruby/win32.h: VC doesn't have ftruncate() and others, but
usa 2011-04-12 10:39:39 +0900 (Tue, 12 Apr 2011) New Revision: 31264 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31264 Log: * include/ruby/win32.h: VC doesn't have ftruncate() and others, but ruby needs HAVE_ macros to use our emulation functions. (fix the problem of 31262) Modified files: trunk/ChangeLog trunk/include/ruby/win32.h Index: include/ruby/win32.h =================================================================== --- include/ruby/win32.h (revision 31263) +++ include/ruby/win32.h (revision 31264) @@ -382,19 +382,19 @@ #define SUFFIX -#if !defined HAVE_FTRUNCATE +#if !defined HAVE_FTRUNCATE || defined(_MSC_VER) #define ftruncate rb_w32_ftruncate extern int rb_w32_ftruncate(int fd, off_t length); #endif -#if !defined HAVE_TRUNCATE +#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 fseeko(FILE *stream, off_t offset, int whence); -#if !defined HAVE_FTELLO +#if !defined HAVE_FTELLO || defined(_MSC_VER) #define ftello rb_w32_ftello extern off_t rb_w32_ftello(FILE *stream); #endif Index: ChangeLog =================================================================== --- ChangeLog (revision 31263) +++ ChangeLog (revision 31264) @@ -1,3 +1,9 @@ +Tue Apr 12 10:37:39 2011 NAKAMURA Usaku <usa@r...> + + * include/ruby/win32.h: VC doesn't have ftruncate() and others, but + ruby needs HAVE_ macros to use our emulation functions. + (fix the problem of 31262) + Tue Apr 12 01:33:00 2011 Luis Lavena <luislavena@g...> * configure.in: properly evaluate existence of truncate, ftruncate -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/