mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 21:40:49 +00:00
Get rid of more fcntl header includes
This commit is contained in:
parent
f189ad271e
commit
432aac58a3
@ -19,7 +19,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
@ -13,9 +13,6 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <compat/strcasestr.h>
|
||||
#include <compat/strl.h>
|
||||
#include <retro_endianness.h>
|
||||
|
@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <compat/strcasestr.h>
|
||||
#include <compat/strl.h>
|
||||
@ -60,7 +59,8 @@ static ssize_t get_token(RFILE *fd, char *token, size_t max_len)
|
||||
rv = retro_fread(fd, c, 1);
|
||||
if (rv == 0)
|
||||
return 0;
|
||||
else if (rv < 1)
|
||||
|
||||
if (rv < 1)
|
||||
{
|
||||
switch (errno)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user