Merge "Add definition of off64_t for mac os builds"
This commit is contained in:
commit
3e0b594619
1 changed files with 6 additions and 0 deletions
|
|
@ -18,12 +18,18 @@
|
||||||
#define ANDROID_BASE_FILE_H
|
#define ANDROID_BASE_FILE_H
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#if !defined(_WIN32) && !defined(O_BINARY)
|
#if !defined(_WIN32) && !defined(O_BINARY)
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
/* Mac OS has always had a 64-bit off_t, so it doesn't have off64_t. */
|
||||||
|
typedef off_t off64_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace base {
|
namespace base {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue