← Back to team overview

kicad-developers team mailing list archive

[PATCH 2/4] Clean up missing DLL export (MSVC warning C4275)

 

---
 include/tool/tool_base.h        | 4 +++-
 include/tool/tool_interactive.h | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/tool/tool_base.h b/include/tool/tool_base.h
index 584a979..caec3b7 100644
--- a/include/tool/tool_base.h
+++ b/include/tool/tool_base.h
@@ -28,6 +28,8 @@
 #include <cassert>
 #include <base_struct.h>    // for KICAD_T
 
+#include <import_export.h>
+
 #include <tool/tool_event.h>
 #include <tool/tool_settings.h>
 
@@ -61,7 +63,7 @@ typedef DELEGATE<int, const TOOL_EVENT&> TOOL_STATE_FUNC;
  * Base abstract interface for all kinds of tools.
  */
 
-class TOOL_BASE
+class APIEXPORT TOOL_BASE
 {
 public:
     TOOL_BASE( TOOL_TYPE aType, TOOL_ID aId, const std::string& aName = std::string( "" ) ) :
diff --git a/include/tool/tool_interactive.h b/include/tool/tool_interactive.h
index 17d2de7..3bf2555 100644
--- a/include/tool/tool_interactive.h
+++ b/include/tool/tool_interactive.h
@@ -32,7 +32,7 @@
 
 class CONTEXT_MENU;
 
-class TOOL_INTERACTIVE : public TOOL_BASE
+class APIEXPORT TOOL_INTERACTIVE : public TOOL_BASE
 {
 public:
     /**

Follow ups

References