X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffsfs.h;fp=direct%2Fyaffsfs.h;h=c20da160e8c47fe6efe7c8fd5e622e173f606d95;hp=f2c7666625cfbf91b2a7c3934967975a2094f52d;hb=1af6728346f8d3cb23aee150c0b9b63405e4017e;hpb=662466a25f6c97bba330ad5d9e9ba215ca8874ee diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index f2c7666..c20da16 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -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 {