foxygit / doom Log in
commit 535c64b336ce59b4e18819544cd2a1129ae97c61
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Mar 12 18:55:27 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Mar 12 18:55:27 2009 +0000

    Define INVALID_SET_FILE_POINTER if it is not defined, to fix compilation
    under MSVC6 (thanks Quasar)

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 1466
---
 src/w_file_win32.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/w_file_win32.c b/src/w_file_win32.c
index 05d3c445..d5e60579 100644
--- a/src/w_file_win32.c
+++ b/src/w_file_win32.c
@@ -35,6 +35,12 @@
 #include "w_file.h"
 #include "z_zone.h"

+// This constant doesn't exist in VC6:
+
+#ifndef INVALID_SET_FILE_POINTER
+#define INVALID_SET_FILE_POINTER 0xffffffff
+#endif
+
 typedef struct
 {
     wad_file_t wad;