Replaced getpid() with GetCurrentProcessId() on Windows.

This commit is contained in:
Vincent Richard 2005-05-14 15:57:06 +00:00
parent 13da0727c5
commit 4781f7ce1c

View File

@ -59,7 +59,7 @@ windowsHandler::~windowsHandler()
const unsigned int windowsHandler::getUnixTime() const
{
return (unsigned int)::time(NULL);
return static_cast <unsigned int>(::time(NULL));
}
@ -227,7 +227,7 @@ const vmime::string windowsHandler::getHostName() const
const unsigned int windowsHandler::getProcessId() const
{
return (::getpid());
return (static_cast <unsigned int>(::GetCurrentProcessId());
}