diff options
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r-- | include/ruby/win32.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index d822a016dc..f9dadb222e 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -382,19 +382,19 @@ scalb(double a, long b) #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 |