From 4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 14 May 2005 15:57:06 +0000 Subject: [PATCH] Replaced getpid() with GetCurrentProcessId() on Windows. --- src/platforms/windows/windowsHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index 36741d25..d4a9ecef 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -59,7 +59,7 @@ windowsHandler::~windowsHandler() const unsigned int windowsHandler::getUnixTime() const { - return (unsigned int)::time(NULL); + return static_cast (::time(NULL)); } @@ -227,7 +227,7 @@ const vmime::string windowsHandler::getHostName() const const unsigned int windowsHandler::getProcessId() const { - return (::getpid()); + return (static_cast (::GetCurrentProcessId()); }