]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Merged branch stdio_rewrite back into trunk.
[pdclib] / includes / errno.h
diff --git a/includes/errno.h b/includes/errno.h
new file mode 100644 (file)
index 0000000..2795fdf
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$ */
+
+/* Errors <errno.h>
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#ifndef _PDCLIB_ERRNO_H
+#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
+
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
+
+#define errno (*_PDCLIB_errno_func())
+
+#define ERANGE _PDCLIB_ERANGE
+#define EDOM _PDCLIB_EDOM
+
+#endif
+