Uses case insensitive comparison in Windows.

This commit is contained in:
Andrea Mazzoleni 2013-05-14 21:34:51 +02:00
parent 3949e32add
commit 52bc209e83
3 changed files with 17 additions and 9 deletions

View file

@ -101,6 +101,15 @@
#include "fnmatch.h"
#endif
/**
* Disable case check in Windows.
*/
#ifdef _WIN32
#define FNM_CASEINSENSITIVE_FOR_WIN FNM_CASEFOLD
#else
#define FNM_CASEINSENSITIVE_FOR_WIN 0
#endif
#if HAVE_IO_H
#include <io.h>
#endif