Changes to support 32-bit loff_t
[yaffs2.git] / direct / yaffsfs.h
index f2c7666625cfbf91b2a7c3934967975a2094f52d..c20da160e8c47fe6efe7c8fd5e622e173f606d95 100644 (file)
@@ -30,7 +30,8 @@
 #define NAME_MAX       256
 #endif
 
-#define YAFFS_MAX_FILE_SIZE (0x800000000LL - 1)
+#define YAFFS_MAX_FILE_SIZE \
+       ( (sizeof(loff_t) < 8) ? YAFFS_MAX_FILE_SIZE_32 : (0x800000000LL - 1) )
 
 
 struct yaffs_dirent {