cont
ggml-ci
This commit is contained in:
parent
c98eb635d6
commit
964a345e61
1 changed files with 4 additions and 0 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue