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/editimasel.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/editimasel.c')
-rw-r--r-- | source/blender/src/editimasel.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <fnmatch.h> #endif |