← Back to team overview

kicad-developers team mailing list archive

[PATCH 2/8] Use Windows-style DLL import/export for all Windows compilers

 

This should be used whenever Windows is targetted, not just for MSYS.
---
 include/import_export.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/import_export.h b/include/import_export.h
index c31729e..672709f 100644
--- a/include/import_export.h
+++ b/include/import_export.h
@@ -28,7 +28,7 @@
 /// Macros which export functions from a DLL/DSO.
 /// See: http://gcc.gnu.org/wiki/Visibility
 
-#if defined(__MINGW32__)
+#if defined(_WIN32)
  #define APIEXPORT __declspec(dllexport)
  #define APIIMPORT __declspec(dllimport)
  #define APILOCAL

Follow ups

References