diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-11-19 23:13:14 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-11-19 23:13:14 +0300 |
commit | 7ade8141416097a6682f8f2f284148e002f10966 (patch) | |
tree | feb0517fa7fc2e97a3b1aebc77721c97b18a6c75 /source/blender/src/filesel.c | |
parent | a92173d4799d869f8c1a008825b5c8d139eb91e1 (diff) |
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.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index 10f234fcd21..599c6d5aae2 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -116,11 +116,14 @@ #include "FTF_Api.h" #endif -#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 <fnmatch.h> #endif |