AppleWin/source/linux/windows/winbase.cpp
Andrea Odetti 85b1f872f0 Rationalise location of some duplicate code.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-24 12:26:47 +01:00

35 lines
537 B
C++

#include "linux/windows/winbase.h"
#include <errno.h>
#include <iostream>
DWORD WINAPI GetLastError(void)
{
return errno;
}
void DeleteCriticalSection(CRITICAL_SECTION * criticalSection)
{
}
void InitializeCriticalSection(CRITICAL_SECTION * criticalSection)
{
}
void EnterCriticalSection(CRITICAL_SECTION * criticalSection)
{
}
void LeaveCriticalSection(CRITICAL_SECTION * criticalSection)
{
}
void OutputDebugString(const char * str)
{
std::cerr << str << std::endl;
}
void ExitProcess(int status)
{
exit(status);
}