summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2006-08-14 11:59:07 +0000
committerEdin Kadribasic <edink@php.net>2006-08-14 11:59:07 +0000
commit56a821ec02b03573c79b78667fc4ea774d94de7f (patch)
tree8caf46725a4bcc93a0995f5605bd6ae9955e7e3a
parent71613983c0a6627783a4f54c9f7cf74fdbdbbb4b (diff)
downloadphp-git-56a821ec02b03573c79b78667fc4ea774d94de7f.tar.gz
Fixed windows build.
Looking at the macro definition it seems that the second argument to U_STRING_DECL can only be a string literal, not an indetifier.
-rw-r--r--ext/standard/string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 43d401d42e..0992d60ac1 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -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 */