summaryrefslogtreecommitdiff
path: root/src/lib/evas/file/evas_path.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2016-06-14 05:42:24 +0200
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-14 19:05:04 +0900
commit2e052d5694e36eb1bc6dd1373b0a4208796465c8 (patch)
treee0acc01ffc901a8e68e6a6f2240e684bd3f555d4 /src/lib/evas/file/evas_path.c
parent8cccde76fe64c4752f036f51cfb0fd26c1ffae9f (diff)
Evas: Support of fnmatch flag FNM_IGNORECASE
Some systems (solaris in that case) define FNM_IGNORECASE instead of FNM_CASEFOLD. Add this case in evas_path.c
Diffstat (limited to '')
-rw-r--r--src/lib/evas/file/evas_path.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/file/evas_path.c b/src/lib/evas/file/evas_path.c
index cc0703abd2..429519eeae 100644
--- a/src/lib/evas/file/evas_path.c
+++ b/src/lib/evas/file/evas_path.c
@@ -104,6 +104,9 @@ evas_file_path_list(char *path, const char *match, int match_case)
104#ifdef FNM_CASEFOLD 104#ifdef FNM_CASEFOLD
105 if (!match_case) 105 if (!match_case)
106 flags |= FNM_CASEFOLD; 106 flags |= FNM_CASEFOLD;
107#elif defined FNM_IGNORECASE
108 if (!match_case)
109 flags |= FNM_IGNORECASE;
107#else 110#else
108/*#warning "Your libc does not provide case-insensitive matching!"*/ 111/*#warning "Your libc does not provide case-insensitive matching!"*/
109#endif 112#endif