]> mj.ucw.cz Git - libucw.git/commitdiff
stkstring.h depends on <stdio.h> (sprintf)
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 1 Mar 2007 13:31:31 +0000 (14:31 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 1 Mar 2007 13:31:31 +0000 (14:31 +0100)
lib/stkstring.h

index f72d3c594286ffc2ea7c2531f67fedf9bdc92970..c075a3e63afcf01e3bd32c1f67196287b52a8e79 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; })