aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-13 01:50:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-13 01:50:32 +0000
commit977eb1bae737419eafd3b0cc7ac932c8770e909f (patch)
tree0f84e24430aa04fe74ba6b0af39f320bf20109d8 /win32/win32.c
parent1a1724229e7ed7faa2f066a16ff86f45a3f5908d (diff)
downloadruby-977eb1bae737419eafd3b0cc7ac932c8770e909f.tar.gz
* win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
mswin32 and mingw32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a9b1ef2f64..55c807c901 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3300,17 +3300,13 @@ rb_w32_free_environ(char **env)
free(env);
}
+#undef getpid
pid_t
rb_w32_getpid(void)
{
pid_t pid;
-#ifndef __BORLANDC__
- pid = _getpid();
-#else
-#undef getpid
pid = getpid();
-#endif
if (IsWin95()) pid = -pid;