]> pd.if.org Git - pdclib/blobdiff - platform/example/internals/_PDCLIB_config.h
Removed the header include guard 'optimization'.
[pdclib] / platform / example / internals / _PDCLIB_config.h
index 0059a7f6d9b9c41975e43bbb7eef0d46f8215619..233a88c8490cbb188efd0a1552b51c8f6ea5f79d 100644 (file)
@@ -7,6 +7,9 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#ifndef _PDCLIB_CONFIG_H
+#define _PDCLIB_CONFIG_H _PDCLIB_CONFIG_H
+
 /* -------------------------------------------------------------------------- */
 /* Misc                                                                       */
 /* -------------------------------------------------------------------------- */
@@ -37,8 +40,8 @@
 /* strerror() and perror() functions. (If you change this value because you   */
 /* are using additional errno values, you *HAVE* to provide appropriate error */
 /* messages for *ALL* locales.)                                               */
-/* Default is 2 (0, ERANGE, EDOM).                                            */
-#define _PDCLIB_ERRNO_MAX 3
+/* Default is 4 (0, ERANGE, EDOM, EILSEQ).                                    */
+#define _PDCLIB_ERRNO_MAX 4
 
 /* -------------------------------------------------------------------------- */
 /* Integers                                                                   */
@@ -341,6 +344,9 @@ typedef int _PDCLIB_fd_t;
    an uppercase 'E', and there is no mechanics in <errno.h> to unmask that
    particular value (for exactly that reason).
 
+   There also is no error message available for this value through either the
+   strerror() or perror() functions. It is being reported as "unknown" error.
+
    The idea is that you scan the source of PDCLib for occurrences of this macro
    and replace _PDCLIB_ERROR with whatever additional errno value you came up
    with for your platform.
@@ -351,3 +357,4 @@ typedef int _PDCLIB_fd_t;
 */
 #define _PDCLIB_ERROR  4
 
+#endif