From 6d0bf9181121b4c117c80d05a7f097363c531774 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 7 Jun 2009 00:56:23 +0000 Subject: Add Windows CE implementations of some ANSI C functions that are missing. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1553 --- wince/errno.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 wince/errno.c (limited to 'wince/errno.c') diff --git a/wince/errno.c b/wince/errno.c new file mode 100644 index 00000000..28cd0899 --- /dev/null +++ b/wince/errno.c @@ -0,0 +1,20 @@ +// +// "Extension" implementation of errno.h for Windows CE. +// +// I (Simon Howard) release this file to the public domain. +// + +#include + +#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; +} + -- cgit v1.2.3