Get rid of madness about fnmatch: BLI_fnmatch did not do the OS checks, they had to be done in every file using fnmatch (autoexec.c did not, wonder how it could work under unix???).

Thanks to Brecht for noting this!
This commit is contained in:
2013-08-27 18:29:30 +00:00
parent 6b51c27414
commit 8bdb1f6155
4 changed files with 12 additions and 24 deletions

View File

@@ -28,6 +28,8 @@
extern "C" {
#endif
#if defined WIN32 && !defined _LIBC || defined __sun
#if defined(__cplusplus) || (defined(__STDC__) && __STDC__)
#undef __P
#define __P(protos) protos
@@ -65,6 +67,13 @@ extern "C" {
extern int fnmatch __P((const char *__pattern, const char *__string,
int __flags));
#else
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
# include <fnmatch.h>
#endif /* defined WIN32 && !defined _LIBC || defined __sun */
#ifdef __cplusplus
}
#endif