Replaced getpid() with GetCurrentProcessId() on Windows.
This commit is contained in:
parent
13da0727c5
commit
4781f7ce1c
@ -59,7 +59,7 @@ windowsHandler::~windowsHandler()
|
|||||||
|
|
||||||
const unsigned int windowsHandler::getUnixTime() const
|
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
|
const unsigned int windowsHandler::getProcessId() const
|
||||||
{
|
{
|
||||||
return (::getpid());
|
return (static_cast <unsigned int>(::GetCurrentProcessId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user