diff options
author | Vincent Richard <[email protected]> | 2005-05-14 15:57:06 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-05-14 15:57:06 +0000 |
commit | 4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f (patch) | |
tree | 8a1919ad461f7a5f3242cd58f9a6ee60f2f196af | |
parent | Fixed missing space in STATUS command + parse error in 'status_info'. (diff) | |
download | vmime-4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f.tar.gz vmime-4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f.zip |
Replaced getpid() with GetCurrentProcessId() on Windows.
-rw-r--r-- | src/platforms/windows/windowsHandler.cpp | 4 |
1 files 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 <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()); } |