From 9c1a9d93792ae1edfa384f5672473b288d170024 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 8 May 2010 15:37:29 +0000 Subject: revert own commit 28662. strnlen is a GNU extension according to http://unixpapa.com/incnote/string.html --- source/blender/blenlib/intern/BLI_dynstr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/blenlib/intern/BLI_dynstr.c') 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); -- cgit v1.2.3