std::ios::beg instead of std::ios::seekdir::beg (works with iOS, OSX, Android, should work fine with Windows too). No need for pre-processor conditional directive (see https://github.com/readium/readium-sdk/commit/75dc5169f096b6e75ffb3e4a10a6 )