From: sajt Date: Wed, 11 Jun 2008 02:15:05 +0000 (+0000) Subject: Fixed compile error in MSVC6 (its SDK is missing a key #define) X-Git-Tag: xonotic-v0.1.0preview~2217 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb5b29952fea9c8d1e9d6578386e6da2cee0d209;p=xonotic%2Fdarkplaces.git 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 --- 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)