From cc80111b2bb9ccf62064979ae527cb2da10e4c31 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Sat, 20 Dec 2008 12:43:53 +0000 Subject: 2.5 * fix lost declaration and missing includes after blenlib cleanup. * bump warning level to W3 for Debug in a few libraries for MSVC9 projectfiles. Others will follow. --- source/blender/blenlib/BLI_util.h | 3 +++ source/blender/blenlib/intern/string.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_util.h b/source/blender/blenlib/BLI_util.h index ca6dde8b3bd..e78a58b2282 100644 --- a/source/blender/blenlib/BLI_util.h +++ b/source/blender/blenlib/BLI_util.h @@ -55,6 +55,9 @@ int BLI_stringdec(char *string, char *kop, char *start, unsigned short *numlen); void BLI_stringenc(char *string, char *kop, char *start, unsigned short numlen, int pic); void BLI_splitdirstring(char *di,char *fi); +/* make sure path separators conform to system one */ +void BLI_clean(char *path); + /** * dir can be any input, like from buttons, and this function * converts it to a regular full path. diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 2fefe1d9b45..715a9316657 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -36,9 +36,12 @@ #include #include #include +#include #include "MEM_guardedalloc.h" +#include "BLI_string.h" + char *BLI_strdupn(const char *str, int len) { char *n= MEM_mallocN(len+1, "strdup"); memcpy(n, str, len); -- cgit v1.2.3