forked from len0rd/rockbox
Include proper io headers to insure that proper file arguments are used. Also mapped flush to appropriate win32 call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3711 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
23d1cdd4de
commit
71197f1d02
1 changed files with 4 additions and 0 deletions
|
|
@ -19,11 +19,15 @@
|
|||
|
||||
#ifndef _FILE_H_
|
||||
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
int win32_rename(char *oldpath, char *newpath);
|
||||
int win32_filesize(int fd);
|
||||
|
||||
#define rename(x,y) win32_rename(x,y)
|
||||
#define filesize(x) win32_filesize(x)
|
||||
#define flush(x) _commit(x)
|
||||
|
||||
#include "../../firmware/include/file.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue