fix [#26803] Libs paths are case sensitive in windows

use case insensitive path comparison on windows: BLI_path_cmp
This commit is contained in:
2011-04-06 06:03:48 +00:00
parent 5c7bed92d4
commit a7507e945d
17 changed files with 38 additions and 34 deletions

View File

@@ -158,9 +158,16 @@ int BLI_path_abs(char *path, const char *basepath);
int BLI_path_frame(char *path, int frame, int digits);
int BLI_path_frame_range(char *path, int sta, int end, int digits);
int BLI_path_cwd(char *path);
void BLI_path_rel(char *file, const char *relfile);
#ifdef WIN32
# define BLI_path_cmp BLI_strcasecmp
# define BLI_path_ncmp BLI_strncasecmp
#else
# define BLI_path_cmp strcmp
# define BLI_path_ncmp strncmp
#endif
/**
* Change every @a from in @a string into @a to. The
* result will be in @a string