aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 12:28:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 12:28:14 +0000
commit224021104d13cbb060cdf87914361503226e4adf (patch)
tree031fbe4a5718e95bb0d6e6b9038542c5d6cf7fb9 /win32/win32.c
parent22c005569b8cd00ea6895dcc7b621b80d9f15068 (diff)
downloadruby-224021104d13cbb060cdf87914361503226e4adf.tar.gz
* 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
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c11
1 files changed, 4 insertions, 7 deletions
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;
}