From 224021104d13cbb060cdf87914361503226e4adf Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Jan 2004 12:28:14 +0000 Subject: * ext/digest/defs.h, win32/win3.c, win32/win32.h, file.c: remove useless casts for Borland C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index b1b55d34e1..4a6479bfa3 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -583,7 +583,6 @@ isInternalCmd(const char *cmd, const char *interp) return 1; } - SOCKET rb_w32_get_osfhandle(int fh) { @@ -1748,12 +1747,7 @@ setgid(int gid) // int -/* ioctl(int i, unsigned int u, char *data) */ -#ifdef __BORLANDC__ - ioctl(int i, int u, ...) -#else - ioctl(int i, unsigned int u, long data) -#endif +ioctl(int i, int u, ...) { return -1; } @@ -2489,6 +2483,9 @@ rb_w32_getcwd(buffer, size) char *bp; #undef getcwd +#ifndef __BORLANDC__ +#define getcwd _getcwd +#endif if (getcwd(buffer, size) == NULL) { return NULL; } -- cgit v1.2.3