fruitjam-doom/wince/errno.c
Simon Howard 6d0bf91811 Add Windows CE implementations of some ANSI C functions that are
missing.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1553
2009-06-07 00:56:23 +00:00

20 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;
}