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.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wince/errno.h (limited to 'wince/errno.h') diff --git a/wince/errno.h b/wince/errno.h new file mode 100644 index 00000000..e9b4721a --- /dev/null +++ b/wince/errno.h @@ -0,0 +1,15 @@ +// +// "Extension" implementation of errno.h for Windows CE. +// +// I (Simon Howard) release this file to the public domain. +// + +#ifndef WINCE_ERRNO_H +#define WINCE_ERRNO_H + +extern int *_GetErrno(); + +#define errno (*_GetErrno()) + +#endif /* #ifndef WINCE_ERROR_H */ + -- cgit v1.2.3 From 203e7e79a1a20b83fea8a91b46c8241c056a23b1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 7 Jun 2009 01:27:58 +0000 Subject: Add libc_wince.h header, and EISDIR error value. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1557 --- wince/errno.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wince/errno.h') diff --git a/wince/errno.h b/wince/errno.h index e9b4721a..a2149b45 100644 --- a/wince/errno.h +++ b/wince/errno.h @@ -7,6 +7,8 @@ #ifndef WINCE_ERRNO_H #define WINCE_ERRNO_H +#define EISDIR 21 /* Is a directory */ + extern int *_GetErrno(); #define errno (*_GetErrno()) -- cgit v1.2.3