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
This commit is contained in:
Vincent Torri 2021-05-05 10:22:25 +01:00 committed by Carsten Haitzler (Rasterman)
parent 6297159c5d
commit 032e86f4aa
2 changed files with 6 additions and 2 deletions

View File

@ -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>

View File

@ -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>