summaryrefslogtreecommitdiff
path: root/src/fixer.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-03 05:30:40 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit29792b40ef3d62dfaf65802cd5be4c68031d94f7 (patch)
treeb835fd5f2635fd2f49cc604de62980cb770fd8fd /src/fixer.h
parentcfd7274022c512ba5e06a659a5281097f6468e40 (diff)
Fixed errors in inline.h.
More compiling. 156 unique undefined references.
Diffstat (limited to 'src/fixer.h')
-rw-r--r--src/fixer.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/fixer.h b/src/fixer.h
index b9baf5d..1c714fe 100644
--- a/src/fixer.h
+++ b/src/fixer.h
@@ -90,21 +90,24 @@ typedef struct SYSTEMTIME
} 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 FILE_ATTRIBUTE_DIRECTORY 10
+#define GENERIC_WRITE 1
+#define CREATE_ALWAYS 2
+#define FILE_FLAG_RANDOM_ACCESS 3
+#define GENERIC_READ 4
+#define OPEN_EXISTING 5
+#define FILE_ATTRIBUTE_READONLY 6
+#define FILE_CURRENT 7
+#define FILE_BEGIN 8
+#define FILE_END 9
+#define FILE_SHARE_READ 10
+#define FILE_ATTRIBUTE_DIRECTORY 11
+#define FILE_SHARE_WRITE 12
+#define OPEN_ALWAYS 13
+#define FILE_ATTRIBUTE_NORMAL 14
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);
-int WriteFile(HANDLE file, const void *data, int len, unsigned long *byteswritten, int x);
+int WriteFile(HANDLE file, const void *data, int len, /* unsigned long */ void *byteswritten, int x);
int ReadFile(HANDLE file, void *data, int len, /* unsigned long */ void *bytesread, int x);
int GetFileSize(HANDLE file, int x);
int CloseHandle(HANDLE file);