Skip to content

Commit

Permalink
build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Dec 11, 2023
1 parent 9021298 commit 2ac1b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3rd_party/lastools/LASzip/src/bytestreamin_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ inline BOOL ByteStreamInFile::seek(const I64 position)
#elif defined (__MINGW32__)
return !(fseeko64(file, (off64_t)position, SEEK_SET));
#else
return !(fseeko(file, (off64_t)position, SEEK_SET));
return !(fseeko(file, (off_t)position, SEEK_SET));
#endif
}
return TRUE;
Expand All @@ -166,7 +166,7 @@ inline BOOL ByteStreamInFile::seekEnd(const I64 distance)
#elif defined (__MINGW32__)
return !(fseeko64(file, (off64_t)-distance, SEEK_END));
#else
return !(fseeko(file, (off64_t)-distance, SEEK_END));
return !(fseeko(file, (off_t)-distance, SEEK_END));
#endif
}

Expand Down

0 comments on commit 2ac1b99

Please sign in to comment.