ucx/string.h

changeset 74
dc8bade7f2a3
parent 69
fb59270b1de3
child 96
fbbff331beba
     1.1 --- a/ucx/string.h	Fri Oct 12 12:12:59 2012 +0200
     1.2 +++ b/ucx/string.h	Fri Oct 12 12:46:54 2012 +0200
     1.3 @@ -12,8 +12,8 @@
     1.4  #include <stddef.h>
     1.5  
     1.6  /* use macros for literals only */
     1.7 -#define S(s) { s, sizeof(s)-1 }
     1.8 -#define ST(s) sstrn(s, sizeof(s)-1)
     1.9 +#define S(s) { (char*)s, sizeof(s)-1 }
    1.10 +#define ST(s) sstrn((char*)s, sizeof(s)-1)
    1.11  
    1.12  #ifdef	__cplusplus
    1.13  extern "C" {

mercurial