diff options
author | Kenneth Heafield <github@kheafield.com> | 2013-01-07 21:38:04 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2013-01-07 21:38:04 +0400 |
commit | 366ca8afff15652da2966dded9e78690f67f9198 (patch) | |
tree | b40d725fbe785c9a6e06735b0a6c35cbc510c861 /util | |
parent | 506cb8e9d17a2e0830e82923a43ff23d93053f97 (diff) |
Remove if that doesn't do anything, define _FILE_OFFSET_BITS 64
Diffstat (limited to 'util')
-rw-r--r-- | util/file.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/file.cc b/util/file.cc index bbf374c9a..cc4aad024 100644 --- a/util/file.cc +++ b/util/file.cc @@ -1,4 +1,5 @@ #define _LARGEFILE64_SOURCE +#define _FILE_OFFSET_BITS 64 #include "util/file.hh" @@ -143,8 +144,6 @@ void InternalSeek(int fd, int64_t off, int whence) { UTIL_THROW_IF( #if defined(_WIN32) || defined(_WIN64) (__int64)-1 == _lseeki64(fd, off, whence), -#elif defined(__APPLE__) && defined(__MACH__) - (off_t)-1 == lseek(fd, off, whence), #else (off_t)-1 == lseek(fd, off, whence), #endif |