Fixed compilation issues on Windows.

This commit is contained in:
Vincent Richard 2012-11-06 16:05:24 +01:00
parent a6a098b473
commit defc1bba1d
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ windowsCriticalSection::windowsCriticalSection()
windowsCriticalSection::~windowsCriticalSection() windowsCriticalSection::~windowsCriticalSection()
{ {
DeleteCriticalSection(&m_cs) DeleteCriticalSection(&m_cs);
} }

View File

@ -241,7 +241,7 @@ unsigned int windowsHandler::getProcessId() const
} }
unsigned int windowsHandler::getThreadId() cont unsigned int windowsHandler::getThreadId() const
{ {
return static_cast <unsigned int>(::GetCurrentThreadId()); return static_cast <unsigned int>(::GetCurrentThreadId());
} }
@ -289,7 +289,7 @@ void windowsHandler::generateRandomBytes(unsigned char* buffer, const unsigned i
} }
ref <utility::sync::criticalSection> posixHandler::createCriticalSection() ref <utility::sync::criticalSection> windowsHandler::createCriticalSection()
{ {
return vmime::create <windowsCriticalSection>(); return vmime::create <windowsCriticalSection>();
} }