From 4db15e7459ab06860cb7a7e162ca6d2b52a68b9c Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 29 Jul 2001 20:57:33 +0000 Subject: More compiling. Things are starting to get hacky (adding stubs, commenting out unimplemented windows stuff, and so on). --- src/fixer.h | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'src/fixer.h') diff --git a/src/fixer.h b/src/fixer.h index 3913c05..b9baf5d 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -8,6 +8,7 @@ extern "C" { #include #include #include +#include #include // int64_t #define PACKED __attribute__((packed)) @@ -42,6 +43,8 @@ size_t _mbclen(const unsigned char *s); #define RGBA_MAKE(r,g,b,a) (((r) << 24) | ((g) << 16) | ((b) << 8) | (a)) +#define MAX_PATH PATH_MAX + /* windows junk */ typedef int GUID; typedef int DPID; @@ -86,17 +89,18 @@ typedef struct SYSTEMTIME int wDay; } SYSTEMTIME; -#define INVALID_HANDLE_VALUE -1 -#define GENERIC_WRITE 0 -#define CREATE_ALWAYS 1 -#define FILE_FLAG_RANDOM_ACCESS 2 -#define GENERIC_READ 3 -#define OPEN_EXISTING 4 -#define FILE_ATTRIBUTE_READONLY 5 -#define FILE_CURRENT 6 -#define FILE_BEGIN 7 -#define FILE_END 8 -#define FILE_SHARE_READ 9 +#define INVALID_HANDLE_VALUE -1 +#define GENERIC_WRITE 0 +#define CREATE_ALWAYS 1 +#define FILE_FLAG_RANDOM_ACCESS 2 +#define GENERIC_READ 3 +#define OPEN_EXISTING 4 +#define FILE_ATTRIBUTE_READONLY 5 +#define FILE_CURRENT 6 +#define FILE_BEGIN 7 +#define FILE_END 8 +#define FILE_SHARE_READ 9 +#define FILE_ATTRIBUTE_DIRECTORY 10 HANDLE CreateFile(const char *file, int write, int x, int y, int flags, int flags2, int z); HANDLE CreateFileA(const char *file, int write, int x, int y, int flags, int flags2, int z); @@ -106,7 +110,7 @@ int GetFileSize(HANDLE file, int x); int CloseHandle(HANDLE file); int DeleteFile(const char *file); int DeleteFileA(const char *file); -int GetDiskFreeSpace(int x, unsigned long *a, unsigned long *b, unsigned long *c, unsigned long *d); +int GetDiskFreeSpace(int x, unsigned long *a, unsigned long *b, unsigned long *c, unsigned long *d); int CreateDirectory(char *dir, int x); int MoveFile(const char *newfile, const char *oldfile); int MoveFileA(const char *newfile, const char *oldfile); -- cgit v1.3