mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
1a1724229e
commit
977eb1bae7
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Sep 13 10:48:37 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
|
||||
mswin32 and mingw32.
|
||||
|
||||
Mon Sep 13 10:22:05 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* object.c (nil_inspect): fix typo.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue