Cleanup filestream_get_fd

This commit is contained in:
twinaphex 2016-04-07 03:35:12 +02:00
parent b20a03f3b9
commit 2e66300320

View file

@ -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)