X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstkstring.h;h=5cd2c6b85a2540f4ca13c9879f8b4c3abda6a3b3;hb=521609b4721376161eabe89c9431aa221e87e263;hp=d96b72386adc703040e8db3e0e73b7f1b3882f46;hpb=733046c9a1a6ccc33617d73238c3c8f4865b34a4;p=libucw.git diff --git a/ucw/stkstring.h b/ucw/stkstring.h index d96b7238..5cd2c6b8 100644 --- a/ucw/stkstring.h +++ b/ucw/stkstring.h @@ -15,10 +15,7 @@ #include #include #include - -#ifdef CONFIG_DARWIN -uns strnlen(const char *str, uns n); -#endif +#include "ucw/string.h" #define stk_strdup(s) ({ const char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; }) #define stk_strndup(s,n) ({ const char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; })