summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2021-05-05 10:22:25 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-05-05 10:22:25 +0100
commit032e86f4aaf4d7972477849bb372da4a3c0ea8ea (patch)
tree26f8c44703b78fd85e3b726d89f5a8c88eadbe6d /src
parent6297159c5df53608bca7a31d5d43e44cbb13667a (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/Efl_Ui.h4
-rw-r--r--src/lib/elementary/Elementary.h4
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 @@
14#include <sys/time.h> 14#include <sys/time.h>
15#include <sys/param.h> 15#include <sys/param.h>
16#include <math.h> 16#include <math.h>
17#include <fnmatch.h> 17#ifndef _WIN32
18# include <fnmatch.h>
19#endif
18#include <limits.h> 20#include <limits.h>
19#include <ctype.h> 21#include <ctype.h>
20#include <time.h> 22#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 @@
20#include <sys/time.h> 20#include <sys/time.h>
21#include <sys/param.h> 21#include <sys/param.h>
22#include <math.h> 22#include <math.h>
23#include <fnmatch.h> 23#ifndef _WIN32
24# include <fnmatch.h>
25#endif
24#include <limits.h> 26#include <limits.h>
25#include <ctype.h> 27#include <ctype.h>
26#include <time.h> 28#include <time.h>