mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 05:52:49 +00:00
attempt to support windows
This commit is contained in:
parent
a55b586df2
commit
0a3f40d5e7
2 changed files with 61 additions and 5 deletions
12
ioutil.h
12
ioutil.h
|
@ -1,6 +1,18 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
|
||||
typedef int FH;
|
||||
#define FH_invalid -1
|
||||
|
||||
#else
|
||||
|
||||
#define UNICODE 1
|
||||
#include <windows.h>
|
||||
typedef HANDLE FH;
|
||||
#define FH_invalid INVALID_HANDLE_VALUE
|
||||
|
||||
#endif
|
||||
|
||||
FH createfile(const char *path,int secret);
|
||||
int closefile(FH fd);
|
||||
int writeall(FH,const u8 *data,size_t len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue