Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-06 10:03:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-06 10:03:48 +0400
commita7507e945d1c314b9bf7f8298a8beea58e047d37 (patch)
treeae5ae0422e5eea00d1b2ae032ebcddaaf6058583 /source/blender/blenlib/BLI_path_util.h
parent5c7bed92d4a124a92c596f2dbe212cc59335925f (diff)
fix [#26803] Libs paths are case sensitive in windows
use case insensitive path comparison on windows: BLI_path_cmp
Diffstat (limited to 'source/blender/blenlib/BLI_path_util.h')
-rw-r--r--source/blender/blenlib/BLI_path_util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_path_util.h b/source/blender/blenlib/BLI_path_util.h
index ed52bf30f62..41e784ab707 100644
--- a/source/blender/blenlib/BLI_path_util.h
+++ b/source/blender/blenlib/BLI_path_util.h
@@ -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