OSDN Git Service

Move off_t size check from build script to code.
[android-x86/external-exfat.git] / libexfat / exfat.h
index 2a881e4..6d9bcf1 100644 (file)
 #define BMAP_CLR(bitmap, index) \
        ((bitmap)[BMAP_BLOCK(index)] &= ~BMAP_MASK(index))
 
+/* The size of off_t type must be 64 bits. File systems larger than 2 GB will
+   be corrupted with 32-bit off_t. */
+STATIC_ASSERT(sizeof(off_t) == 8);
+
 struct exfat_node
 {
        struct exfat_node* parent;