From 2ac1b99e20718b99c6aedb5ed7366a056c44cb9a Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Mon, 11 Dec 2023 17:09:03 +0100 Subject: [PATCH] build on macOS --- 3rd_party/lastools/LASzip/src/bytestreamin_file.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rd_party/lastools/LASzip/src/bytestreamin_file.hpp b/3rd_party/lastools/LASzip/src/bytestreamin_file.hpp index fe8dbaa2..9334a103 100644 --- a/3rd_party/lastools/LASzip/src/bytestreamin_file.hpp +++ b/3rd_party/lastools/LASzip/src/bytestreamin_file.hpp @@ -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; @@ -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 }