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>2010-05-08 19:37:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-05-08 19:37:29 +0400
commit9c1a9d93792ae1edfa384f5672473b288d170024 (patch)
tree93ff25ff61c0d67905a161bb380496abb732da75 /source/blender/blenlib/intern/BLI_dynstr.c
parentd906d8ce3a1e93b95852b13b67783480b338a28a (diff)
revert own commit 28662.
strnlen is a GNU extension according to http://unixpapa.com/incnote/string.html
Diffstat (limited to 'source/blender/blenlib/intern/BLI_dynstr.c')
-rw-r--r--source/blender/blenlib/intern/BLI_dynstr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/BLI_dynstr.c b/source/blender/blenlib/intern/BLI_dynstr.c
index 4754d3bd8c3..5b61a86305b 100644
--- a/source/blender/blenlib/intern/BLI_dynstr.c
+++ b/source/blender/blenlib/intern/BLI_dynstr.c
@@ -39,9 +39,6 @@
#ifndef vsnprintf
#define vsnprintf _vsnprintf
#endif
-#ifndef strnlen
-#define strnlen _strnlen
-#endif
#endif
/***/
@@ -86,7 +83,7 @@ void BLI_dynstr_append(DynStr *ds, const char *cstr) {
void BLI_dynstr_nappend(DynStr *ds, const char *cstr, int len) {
DynStrElem *dse= malloc(sizeof(*dse));
- int cstrlen= strnlen(cstr, len);
+ int cstrlen= BLI_strnlen(cstr, len);
dse->str= malloc(cstrlen+1);
memcpy(dse->str, cstr, cstrlen);