diff --git a/src/draco/io/stdio_file_reader.cc b/src/draco/io/stdio_file_reader.cc index a99c96f8..071521de 100644 --- a/src/draco/io/stdio_file_reader.cc +++ b/src/draco/io/stdio_file_reader.cc @@ -87,10 +87,10 @@ size_t StdioFileReader::GetFileSize() { return false; } -#if _FILE_OFFSET_BITS == 64 - const size_t file_size = static_cast(ftello(file_)); -#elif defined _WIN64 +#if defined _WIN64 const size_t file_size = static_cast(_ftelli64(file_)); +#elif _FILE_OFFSET_BITS == 64 + const size_t file_size = static_cast(ftello(file_)); #else const size_t file_size = static_cast(ftell(file_)); #endif