From 614cb5abf0d49ad5b12b43af12af61c092d61ecd Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Sun, 4 Oct 2015 16:23:20 +0200 Subject: [PATCH] Fix non PCH build and gcc warnings in wxAuiMSWTabArt Recent de96b0dae72e928d33bc40bc8bcb4f663d5f02e9 commit caused these issues. See https://github.com/wxWidgets/wxWidgets/pull/108 --- src/aui/tabartmsw.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/aui/tabartmsw.cpp b/src/aui/tabartmsw.cpp index e83a365145..17f894a163 100644 --- a/src/aui/tabartmsw.cpp +++ b/src/aui/tabartmsw.cpp @@ -13,6 +13,10 @@ #pragma hdrstop #endif +#ifndef WX_PRECOMP + #include "wx/dc.h" +#endif + #include "wx/aui/tabart.h" #include "wx/aui/auibook.h" #include "wx/msw/uxtheme.h" @@ -381,7 +385,7 @@ void wxAuiMSWTabArt::DrawButton(wxDC& dc, wxUxThemeEngine* te = wxUxThemeEngine::Get(); - wchar_t* themeId = NULL; + const wchar_t* themeId = NULL; int part = 0; switch (bitmap_id)