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 {
|
int llama_file::file_id() const {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return _fileno(pimpl->fp);
|
return _fileno(pimpl->fp);
|
||||||
|
#else
|
||||||
|
#if defined(fileno)
|
||||||
|
return fileno(pimpl->fp);
|
||||||
#else
|
#else
|
||||||
return ::fileno(pimpl->fp);
|
return ::fileno(pimpl->fp);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void llama_file::seek(size_t offset, int whence) const { pimpl->seek(offset, whence); }
|
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