]> git.saurik.com Git - wxWidgets.git/commitdiff
Include <windows.h> before including <shellapi.h>.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2010 12:19:14 +0000 (12:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2010 12:19:14 +0000 (12:19 +0000)
Although this is not needed with most compilers (including recent MinGW),
including <shellapi.h> directly apparently doesn't work with some older MinGW
versions.

This fixes compilation after the changes of r64139.

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

src/msw/volume.cpp

index 35c487da019d23840a7ff8dff470e3d009cd9a0f..36bf5d08cdbed53379513f7316290ffe100a2e1b 100644 (file)
@@ -40,6 +40,9 @@
 #include "wx/dynlib.h"
 #include "wx/arrimpl.cpp"
 
+// some compilers require including <windows.h> before <shellapi.h> so do it
+// even if this is not necessary with most of them
+#include "wx/msw/wrapwin.h"
 #include <shellapi.h>
 #include <shlobj.h>
 #include "wx/msw/missing.h"