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
This commit is contained in:
Vincent Torri 2016-06-14 05:42:24 +02:00 committed by Jean-Philippe Andre
parent 8cccde76fe
commit 2e052d5694
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ evas_file_path_list(char *path, const char *match, int match_case)
#ifdef FNM_CASEFOLD
if (!match_case)
flags |= FNM_CASEFOLD;
#elif defined FNM_IGNORECASE
if (!match_case)
flags |= FNM_IGNORECASE;
#else
/*#warning "Your libc does not provide case-insensitive matching!"*/
#endif