]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempt to fix MSVC6 compilation after the previous commit.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Jan 2013 22:14:47 +0000 (22:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Jan 2013 22:14:47 +0000 (22:14 +0000)
Include <shlobj.h> before our wx/msw/missing.h, otherwise many things were
redefined.

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

src/common/filename.cpp

index 6434bcbaef03e97d7ab8ab61b5e6778311c665e4..6ffcbf1288f6b20eab0f65ebd86ff5bba338039d 100644 (file)
 
 #ifdef __WINDOWS__
     #include "wx/msw/private.h"
+    #include <shlobj.h>         // for CLSID_ShellLink
     #include "wx/msw/missing.h"
 #endif
 
@@ -1703,13 +1704,6 @@ bool wxFileName::ReplaceHomeDir(wxPathFormat format)
 // quotation marks."
 
 #if defined(__WIN32__) && !defined(__WXWINCE__) && wxUSE_OLE
-// The following lines are necessary under WinCE
-// #include "wx/msw/private.h"
-// #include <ole2.h>
-#include <shlobj.h>
-#if defined(__WXWINCE__)
-#include <shlguid.h>
-#endif
 
 bool wxFileName::GetShortcutTarget(const wxString& shortcutPath,
                                    wxString& targetFilename,