Change assets to use 64-bit API

The asset system and supporting libraries were using off_t instead of
off64_t to access files larger than 2GB (32-bit signed). This change
replaces all off_t with off64_t and lseek64.

There is a new utils/Compat.h added for Mac OS compatibility.

Also fixed some size-related compiler warnings.

Bug: 3205336
Change-Id: I9097b3cb7a602e811fe52f245939d8975da55e9e
This commit is contained in:
Kenny Root
2010-11-24 12:56:06 -08:00
parent 8028a951c3
commit ddb76c4644
22 changed files with 193 additions and 138 deletions

View File

@@ -30,7 +30,7 @@ void printStringPool(const ResStringPool* pool)
str = String8(pool->stringAt(s, &len)).string();
}
printf("String #%d: %s\n", s, str);
printf("String #%zd: %s\n", s, str);
}
}