]> granicus.if.org Git - php/commitdiff
Fixed windows build.
authorEdin Kadribasic <edink@php.net>
Mon, 14 Aug 2006 11:59:07 +0000 (11:59 +0000)
committerEdin Kadribasic <edink@php.net>
Mon, 14 Aug 2006 11:59:07 +0000 (11:59 +0000)
Looking at the macro definition it seems that the second argument
to U_STRING_DECL can only be a string literal, not an indetifier.

ext/standard/string.c

index 43d401d42eb3d4d4247acf265ac8204527d22047..0992d60ac1e11ee01a78bd8664c6e5d143370e1f 100644 (file)
@@ -6777,8 +6777,9 @@ PHP_FUNCTION(sscanf)
 
 static char rot13_from[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
 static char rot13_to[] = "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM";
-U_STRING_DECL(u_rot13_from, rot13_from, sizeof(rot13_from)-1);
-U_STRING_DECL(u_rot13_to, rot13_to, sizeof(rot13_to)-1);
+U_STRING_DECL(u_rot13_from, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", sizeof(rot13_from)-1);
+U_STRING_DECL(u_rot13_to, "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM", sizeof(rot13_to)-1);
+
 
 /* {{{ proto string str_rot13(string str) U
    Perform the rot13 transform on a string */