Fix duplicate symbol link errors in wxMSW wxTextEntry code.

Don't include <initguid.h> too soon, as this affects the headers included
after it instead of just our own uses of DEFINE_GUID() as intended.

This resulted in link errors because of duplicate definitions of the many
standard GUIDs when using MinGW for which we include, for whatever reason,
shlguid.h.

This fixes the change of r67573.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-07-26 10:38:39 +00:00
parent 19d7382a29
commit 609a42decf

View File

@@ -34,8 +34,6 @@
#include "wx/textcompleter.h"
#include "wx/dynlib.h"
#include <initguid.h>
#include "wx/msw/private.h"
#if wxUSE_UXTHEME
@@ -79,6 +77,11 @@
#define SHACF_FILESYS_DIRS 0x00000020
#endif
// This must be the last header included to only affect the DEFINE_GUID()
// occurrences below but not any GUIDs declared in the standard files included
// above.
#include <initguid.h>
namespace
{