summaryrefslogtreecommitdiff
path: root/wince/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'wince/errno.h')
-rw-r--r--wince/errno.h15
1 files changed, 15 insertions, 0 deletions
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 */
+