Define INVALID_FILE_ATTRIBUTES in filename.cpp too.

Fix VC6 compilation: INVALID_FILE_ATTRIBUTES is not defined in its headers so
we need to do it ourselves (this was done in filefn.cpp before but part of the
code using this constant was moved to filename.cpp in r62735 so now we need to
define it here too).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-28 03:37:41 +00:00
parent aeef0d188c
commit 85b1997c09

View File

@@ -144,6 +144,13 @@
extern const wxULongLong wxInvalidSize = (unsigned)-1;
#endif // wxUSE_LONGLONG
#ifdef __WIN32__
// this define is missing from VC6 headers
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
#endif
#endif // __WIN32__
namespace
{
@@ -574,7 +581,7 @@ bool wxFileName::FileExists() const
/* static */
bool wxFileName::FileExists( const wxString &filePath )
{
#if defined(__WXPALMOS__)
#if defined(__WXPALMOS__)
return false;
#elif defined(__WIN32__) && !defined(__WXMICROWIN__)
// we must use GetFileAttributes() instead of the ANSI C functions because