Some of the clean-ups proposed by Stéphane Lesage.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
( (sizeof(Y_LOFF_T) < 8) ? YAFFS_MAX_FILE_SIZE_32 : (0x800000000LL - 1) )
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
struct yaffs_dirent {
long d_ino; /* inode number */
off_t d_off; /* offset to this dirent */
/* Trace control functions */
unsigned yaffs_set_trace(unsigned tm);
unsigned yaffs_get_trace(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
#ifdef CONFIG_YAFFS_DEFINES_TYPES
typedef unsigned char u8;
typedef unsigned short u16;
-typedef unsigned u32;
+typedef unsigned int u32;
#endif