Files
2019-09-01 14:14:08 +01:00

21 lines
327 B
C

//
// "Extension" implementation of errno.h for Windows CE.
//
// I (Simon Howard) release this file to the public domain.
//
#include <windows.h>
#include "errno.h"
// This should really be a thread-local variable. Oh well.
static int my_errno;
int *_GetErrno()
{
my_errno = GetLastError();
return &my_errno;
}