← Back to team overview

kicad-developers team mailing list archive

[PATCH] Genericize Windows import/export

 

Windows-style dllimport/dllexport should be used whenever targetting
Windows directly, not just for MINGW.

---
 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