mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Cleanup filestream_get_fd
This commit is contained in:
parent
b20a03f3b9
commit
2e66300320
1 changed files with 0 additions and 4 deletions
|
@ -93,15 +93,11 @@ int filestream_get_fd(RFILE *stream)
|
||||||
{
|
{
|
||||||
if (!stream)
|
if (!stream)
|
||||||
return -1;
|
return -1;
|
||||||
#if defined(VITA) || defined(PSP) || defined(__CELLOS_LV2__)
|
|
||||||
return stream->fd;
|
|
||||||
#else
|
|
||||||
#if defined(HAVE_BUFFERED_IO)
|
#if defined(HAVE_BUFFERED_IO)
|
||||||
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
||||||
return fileno(stream->fp);
|
return fileno(stream->fp);
|
||||||
#endif
|
#endif
|
||||||
return stream->fd;
|
return stream->fd;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RFILE *filestream_open(const char *path, unsigned mode, ssize_t len)
|
RFILE *filestream_open(const char *path, unsigned mode, ssize_t len)
|
||||||
|
|
Loading…
Add table
Reference in a new issue