From 625f0afcffa3f6a43e4dfadbb95ada9427649bf1 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 23 Aug 2020 12:41:13 -0400 Subject: [PATCH] Fix link issue on MSVC (thanks @mroszko) wxScrolledCanvas is not properly exported, so when we add a wxGrid it has a chance of creating linker errors. Including the wx/grid.h ensures that the linker does not see two conflicting symbols between gal and the other place where wxGrid is used. --- include/class_draw_panel_gal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class_draw_panel_gal.h b/include/class_draw_panel_gal.h index 80205996cb..cfb5f4699e 100644 --- a/include/class_draw_panel_gal.h +++ b/include/class_draw_panel_gal.h @@ -30,6 +30,7 @@ #include #include +#include // needed for MSVC to see wxScrolledCanvas indirectly exported #include #include #include