#ifndef EXT4_ERRNO_H_
#define EXT4_ERRNO_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "ext4_config.h"
#if !CONFIG_HAVE_OWN_ERRNO
#define ERANGE 34 /* Math result not representable */
#define ENOTEMPTY 39 /* Directory not empty */
#define ENODATA 61 /* No data available */
-#define ENOATTR ENODATA /* No attribute 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_ */
/**