Fix building without precompiled headers on Windows

This commit is contained in:
Maarten Bent
2018-05-21 21:21:23 +02:00
committed by VZ
parent a195bf86a2
commit 802c77b964
5 changed files with 11 additions and 7 deletions

View File

@@ -15,6 +15,9 @@
// Ensure no previous defines interfere with the Direct2D API headers
#undef GetHwnd
// include before wincodec.h to prevent winsock/winsock2 redefinition warnings
#include "wx/msw/wrapwin.h"
#include <d2d1.h>
#include <dwrite.h>
#include <wincodec.h>

View File

@@ -26,6 +26,7 @@
#if wxUSE_CRASHREPORT
#ifndef WX_PRECOMP
#include "wx/wxcrtvararg.h"
#endif //WX_PRECOMP
#include "wx/msw/debughlp.h"

View File

@@ -14,9 +14,6 @@
// Minimum supported client: Windows 8 and Platform Update for Windows 7
#define wxD2D_DEVICE_CONTEXT_SUPPORTED 0
// Ensure no previous defines interfere with the Direct2D API headers
#undef GetHwnd
// We load these functions at runtime from the d2d1.dll.
// However, since they are also used inside the d2d1.h header we must provide
// implementations matching the exact declarations. These defines ensures we
@@ -36,9 +33,7 @@
#pragma warning(disable:4458) // declaration of 'xxx' hides class member
#endif
#include <d2d1.h>
#include <dwrite.h>
#include <wincodec.h>
#include "wx/msw/private/graphicsd2d.h"
#ifdef __MINGW64_TOOLCHAIN__
#ifndef DWRITE_E_NOFONT
@@ -78,7 +73,6 @@
#include "wx/private/graphics.h"
#include "wx/stack.h"
#include "wx/sharedptr.h"
#include "wx/msw/private/graphicsd2d.h"
// 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

View File

@@ -16,6 +16,8 @@
#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/module.h"
#include "wx/string.h"
#endif // WX_PRECOMP

View File

@@ -26,6 +26,10 @@
#if wxUSE_WINRT
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif //WX_PRECOMP
#include <roapi.h>
#include "wx/dynlib.h"