Fix build for Win32.

This commit is contained in:
Themaister 2012-04-13 21:30:55 +02:00
parent 8c426ed49a
commit 687d5a2b2b

10
file.c
View File

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