Fix building without precompiled headers on Windows
This commit is contained in:
@@ -15,6 +15,9 @@
|
|||||||
// Ensure no previous defines interfere with the Direct2D API headers
|
// Ensure no previous defines interfere with the Direct2D API headers
|
||||||
#undef GetHwnd
|
#undef GetHwnd
|
||||||
|
|
||||||
|
// include before wincodec.h to prevent winsock/winsock2 redefinition warnings
|
||||||
|
#include "wx/msw/wrapwin.h"
|
||||||
|
|
||||||
#include <d2d1.h>
|
#include <d2d1.h>
|
||||||
#include <dwrite.h>
|
#include <dwrite.h>
|
||||||
#include <wincodec.h>
|
#include <wincodec.h>
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#if wxUSE_CRASHREPORT
|
#if wxUSE_CRASHREPORT
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/wxcrtvararg.h"
|
||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/msw/debughlp.h"
|
#include "wx/msw/debughlp.h"
|
||||||
|
@@ -14,9 +14,6 @@
|
|||||||
// Minimum supported client: Windows 8 and Platform Update for Windows 7
|
// Minimum supported client: Windows 8 and Platform Update for Windows 7
|
||||||
#define wxD2D_DEVICE_CONTEXT_SUPPORTED 0
|
#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.
|
// We load these functions at runtime from the d2d1.dll.
|
||||||
// However, since they are also used inside the d2d1.h header we must provide
|
// However, since they are also used inside the d2d1.h header we must provide
|
||||||
// implementations matching the exact declarations. These defines ensures we
|
// implementations matching the exact declarations. These defines ensures we
|
||||||
@@ -36,9 +33,7 @@
|
|||||||
#pragma warning(disable:4458) // declaration of 'xxx' hides class member
|
#pragma warning(disable:4458) // declaration of 'xxx' hides class member
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <d2d1.h>
|
#include "wx/msw/private/graphicsd2d.h"
|
||||||
#include <dwrite.h>
|
|
||||||
#include <wincodec.h>
|
|
||||||
|
|
||||||
#ifdef __MINGW64_TOOLCHAIN__
|
#ifdef __MINGW64_TOOLCHAIN__
|
||||||
#ifndef DWRITE_E_NOFONT
|
#ifndef DWRITE_E_NOFONT
|
||||||
@@ -78,7 +73,6 @@
|
|||||||
#include "wx/private/graphics.h"
|
#include "wx/private/graphics.h"
|
||||||
#include "wx/stack.h"
|
#include "wx/stack.h"
|
||||||
#include "wx/sharedptr.h"
|
#include "wx/sharedptr.h"
|
||||||
#include "wx/msw/private/graphicsd2d.h"
|
|
||||||
|
|
||||||
// This must be the last header included to only affect the DEFINE_GUID()
|
// 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
|
// occurrences below but not any GUIDs declared in the standard files included
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT
|
#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/app.h"
|
||||||
|
#include "wx/module.h"
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
@@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
#if wxUSE_WINRT
|
#if wxUSE_WINRT
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/log.h"
|
||||||
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include <roapi.h>
|
#include <roapi.h>
|
||||||
|
|
||||||
#include "wx/dynlib.h"
|
#include "wx/dynlib.h"
|
||||||
|
Reference in New Issue
Block a user