raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=032e86f4aaf4d7972477849bb372da4a3c0ea8ea

commit 032e86f4aaf4d7972477849bb372da4a3c0ea8ea
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Wed May 5 10:22:25 2021 +0100

    Elementary: include fnmatch.h only on non Windows OS
    
    Summary: Windows has no fnmatch.h, so usage of Elementary on that OS will 
fail
    
    Reviewers: raster
    
    Reviewed By: raster
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12268
---
 src/lib/elementary/Efl_Ui.h     | 4 +++-
 src/lib/elementary/Elementary.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/Efl_Ui.h b/src/lib/elementary/Efl_Ui.h
index 3a64e9fdb0..afae5983e4 100644
--- a/src/lib/elementary/Efl_Ui.h
+++ b/src/lib/elementary/Efl_Ui.h
@@ -14,7 +14,9 @@
 #include <sys/time.h>
 #include <sys/param.h>
 #include <math.h>
-#include <fnmatch.h>
+#ifndef _WIN32
+# include <fnmatch.h>
+#endif
 #include <limits.h>
 #include <ctype.h>
 #include <time.h>
diff --git a/src/lib/elementary/Elementary.h b/src/lib/elementary/Elementary.h
index 8e8c198829..a64406de43 100644
--- a/src/lib/elementary/Elementary.h
+++ b/src/lib/elementary/Elementary.h
@@ -20,7 +20,9 @@
 #include <sys/time.h>
 #include <sys/param.h>
 #include <math.h>
-#include <fnmatch.h>
+#ifndef _WIN32
+# include <fnmatch.h>
+#endif
 #include <limits.h>
 #include <ctype.h>
 #include <time.h>

-- 


Reply via email to