From cb5b29952fea9c8d1e9d6578386e6da2cee0d209 Mon Sep 17 00:00:00 2001 From: sajt Date: Wed, 11 Jun 2008 02:15:05 +0000 Subject: [PATCH] Fixed compile error in MSVC6 (its SDK is missing a key #define) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8352 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs.c b/fs.c index e6d69f65..173dcb55 100644 --- 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) -- 2.39.2