use BLI_strcasecmp instead of strcasecmp so it actually links under Windows
This commit is contained in:
@@ -304,7 +304,7 @@ int BLI_rename(char *from, char *to) {
|
|||||||
if (!BLI_exists(from)) return 0;
|
if (!BLI_exists(from)) return 0;
|
||||||
|
|
||||||
/* make sure the filenames are different (case insensitive) before removing */
|
/* make sure the filenames are different (case insensitive) before removing */
|
||||||
if (BLI_exists(to) && strcasecmp(from, to))
|
if (BLI_exists(to) && BLI_strcasecmp(from, to))
|
||||||
if(BLI_delete(to, 0, 0)) return 1;
|
if(BLI_delete(to, 0, 0)) return 1;
|
||||||
|
|
||||||
return rename(from, to);
|
return rename(from, to);
|
||||||
|
|||||||
Reference in New Issue
Block a user