X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=c20da160e8c47fe6efe7c8fd5e622e173f606d95;hb=1af6728346f8d3cb23aee150c0b9b63405e4017e;hp=f2c7666625cfbf91b2a7c3934967975a2094f52d;hpb=07353dd87a46afc753441028af8f5e8629b13bdc;p=yaffs2.git 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 {