]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't duplicate INVALID_FILE_ATTRIBUTES definition.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Feb 2011 13:26:06 +0000 (13:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Feb 2011 13:26:06 +0000 (13:26 +0000)
Move it in wx/msw/missing.h header instead of defining it in two different
places.

Closes #12964.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/missing.h
src/common/filefn.cpp
src/common/filename.cpp

index f4961c25621458c74cef9a7e96f2c63115fdc96d..95157acc1b2079fc9593b65a2a984177996fa117 100644 (file)
@@ -537,5 +537,9 @@ typedef struct
     #endif
 #endif  // defined __WINE__
 
+#ifndef INVALID_FILE_ATTRIBUTES
+    #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
+#endif
+
 #endif
     // _WX_MISSING_H_
index f887f465d9d22575684f85469b036aa23f617994..3fe29bbe8b024c0764b61fcb653240e257b045f8 100644 (file)
     #define _MAXPATHLEN 1024
 #endif
 
-#ifndef INVALID_FILE_ATTRIBUTES
-    #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
-#endif
-
 // ----------------------------------------------------------------------------
 // private globals
 // ----------------------------------------------------------------------------
index dd770afb715de38d38e30017931361dc2f7fe6ba..b70eb4fd8d5896e9102d508d363404c34918a12d 100644 (file)
 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
 {