mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 15:32:01 +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 "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.
|
||||
ssize_t read_file(const char *path, void **buf)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user