mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Fix build for Win32.
This commit is contained in:
parent
8c426ed49a
commit
687d5a2b2b
10
file.c
10
file.c
@ -26,6 +26,16 @@
|
|||||||
#include "compat/strl.h"
|
#include "compat/strl.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
|
#include <io.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <windows.h>
|
||||||
|
#elif defined(_XBOX)
|
||||||
|
#include <xtl.h>
|
||||||
|
#define setmode _setmode
|
||||||
|
#define INVALID_FILE_ATTRIBUTES -1
|
||||||
|
#endif
|
||||||
|
|
||||||
// Generic file loader.
|
// Generic file loader.
|
||||||
ssize_t read_file(const char *path, void **buf)
|
ssize_t read_file(const char *path, void **buf)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user