diff options
Diffstat (limited to 'common/os_calls.c')
| -rw-r--r-- | common/os_calls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index c29200ea..84bba282 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1864,14 +1864,13 @@ g_exit(int exit_code) } /*****************************************************************************/ -/* does not work in win32 */ int APP_CC g_getpid(void) { #if defined(_WIN32) - return 0; + return (int)GetCurrentProcessId(); #else - return getpid(); + return (int)getpid(); #endif } |
