ggml-ci
This commit is contained in:
Georgi Gerganov 2025-01-04 16:46:47 +02:00
parent c98eb635d6
commit 964a345e61
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -244,9 +244,13 @@ size_t llama_file::size() const { return pimpl->size; }
int llama_file::file_id() const {
#ifdef _WIN32
return _fileno(pimpl->fp);
#else
#if defined(fileno)
return fileno(pimpl->fp);
#else
return ::fileno(pimpl->fp);
#endif
#endif
}
void llama_file::seek(size_t offset, int whence) const { pimpl->seek(offset, whence); }