]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed compile error in MSVC6 (its SDK is missing a key #define)
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Jun 2008 02:15:05 +0000 (02:15 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Jun 2008 02:15:05 +0000 (02:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8352 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index e6d69f6583233981129388dd79e0527a86418d8f..173dcb55ec05742e239d9a6e5908c935ecc2226f 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2513,6 +2513,11 @@ Look for a file in the filesystem only
 int FS_SysFileType (const char *path)
 {
 #if WIN32
+// Sajt - some older sdks are missing this define
+# ifndef INVALID_FILE_ATTRIBUTES
+#  define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
+# endif
+
        DWORD result = GetFileAttributes(path);
 
        if(result == INVALID_FILE_ATTRIBUTES)