Add efacf056cd
This commit is contained in:
20
dockerdoom/trunk/wince/errno.c
Normal file
20
dockerdoom/trunk/wince/errno.c
Normal file
@ -0,0 +1,20 @@
|
||||
//
|
||||
// "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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user