aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-10 10:24:08 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-10 10:24:08 +0000
commit6302bcf0227d237a49af37862c335891222af339 (patch)
treec2e2c1d38cb65d206d6a67c02a5abcb3ee00cf70 /win32/win32.c
parented1a776ae06b9b11ae7fe86c94f3a76dae969b41 (diff)
downloadruby-6302bcf0227d237a49af37862c335891222af339.tar.gz
* bcc32/Makefile.sub: bccwin32 port starts to use RTL dll.
(need to rebuild all) [ruby-dev:24138] * win32/win32.{h,c}: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 7c5e283356..a9b1ef2f64 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3305,7 +3305,13 @@ rb_w32_getpid(void)
{
pid_t pid;
+#ifndef __BORLANDC__
pid = _getpid();
+#else
+#undef getpid
+ pid = getpid();
+#endif
+
if (IsWin95()) pid = -pid;
return pid;