← Back to team overview

kicad-developers team mailing list archive

Patch to fix compil issue on Windows.

 

Hi, Jeff,

The commit f3f814e622b2ed1af0b31c28665811fba15959dc breaks the
compilation on Windows.

Attached a small fix.

Please test it on OSX.

-- 
Jean-Pierre CHARRAS
 common/common.cpp | 3 ++-
 include/common.h  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/common/common.cpp b/common/common.cpp
index 3c8e9dfd9..deb07d44b 100644
--- a/common/common.cpp
+++ b/common/common.cpp
@@ -581,6 +581,7 @@ long long WX_FILENAME::GetTimestamp()
     return 0;
 }
 
+#ifndef __WINDOWS__
 
 //
 // A version of wxDir which avoids expensive calls to wxFileName::wxFileName().
@@ -650,4 +651,4 @@ bool WX_DIR::GetNext(wxString *filename) const
 
     return true;
 }
-
+#endif
diff --git a/include/common.h b/include/common.h
index 1fab119c4..eabedc0cc 100644
--- a/include/common.h
+++ b/include/common.h
@@ -37,6 +37,7 @@
 #include <wx/wx.h>
 #include <wx/confbase.h>
 #include <wx/fileconf.h>
+#include <wx/dir.h>
 
 #include <richio.h>
 #include <gal/color4d.h>

Follow ups