ext4_journal: journal write skeleton code.
[lwext4.git] / lwext4 / ext4_errno.h
index ab41de5e78386afe3dbad2847ba3c4403f73754a..ce5784c6a9f1b0ba39afdaaa3e0490cabb157168 100644 (file)
 #ifndef EXT4_ERRNO_H_
 #define EXT4_ERRNO_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "ext4_config.h"
 
 #if !CONFIG_HAVE_OWN_ERRNO
 #define EDOM 33      /* Math argument out of domain of func */
 #define ERANGE 34    /* Math result not representable */
 #define ENOTEMPTY 39 /* Directory not empty */
+#define ENODATA 61   /* No data available */
 #define ENOTSUP 95   /* Not supported */
 #endif
 
+#ifndef ENODATA
+ #ifdef ENOATTR
+ #define ENODATA ENOATTR
+ #else
+ #define ENODATA 61
+ #endif
+#endif
+
 #ifndef ENOTSUP
 #define ENOTSUP 95
 #endif
 #define EOK 0
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EXT4_ERRNO_H_ */
 
 /**