From 7ade8141416097a6682f8f2f284148e002f10966 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Mon, 19 Nov 2007 20:13:14 +0000 Subject: Bugfix #7510: Doesn't save .blend file name with [ * Added Windows specific implementation for fnmatch taken from GNU/MINGW/MSYS C library * behaviour should now be the same as under Linux and other OSs * changed filename for fnmatch.h to ensure we include the correct one if we link with the included implementation * tested compile with MSVC 7.1 and gcc(MinGW-5.1.3) on Windows. --- source/blender/src/editimasel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/src/editimasel.c') diff --git a/source/blender/src/editimasel.c b/source/blender/src/editimasel.c index abc19b53671..d57df3aaccf 100644 --- a/source/blender/src/editimasel.c +++ b/source/blender/src/editimasel.c @@ -117,12 +117,14 @@ static int imasel_has_func(SpaceImaSel *simasel) return 0; } -/* ugly, needs to be moved to platform specific files - elubie */ -#if defined WIN32 || defined __BeOS +#if defined __BeOS static int fnmatch(const char *pattern, const char *string, int flags) { return 0; } +#elif defined WIN32 && !defined _LIBC + /* use fnmatch included in blenlib */ + #include "BLI_fnmatch.h" #else #include #endif -- cgit v1.2.3