]> mj.ucw.cz Git - libucw.git/blobdiff - lib/stkstring.h
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
[libucw.git] / lib / stkstring.h
index 74e152888e8d2b9a4a2838d543c6076ffca978cd..2947d436426eeae57781ee22d08128fdfca6e365 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <alloca.h>
 #include <string.h>
+#include <stdio.h>
 
 #define stk_strdup(s) ({ char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; })
 #define stk_strndup(s,n) ({ char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; })