pyRXP.c: fix declaration for MSVC py33
authorrobin
Mon, 06 Jan 2014 11:00:45 +0000
branchpy33
changeset 28 752495a2ae3e
parent 27 758c71f2fd13
child 29 61bbc7be9025
pyRXP.c: fix declaration for MSVC
src/pyRXP.c
--- a/src/pyRXP.c	Sun Jan 05 11:41:33 2014 +0000
+++ b/src/pyRXP.c	Mon Jan 06 11:00:45 2014 +0000
@@ -693,6 +693,7 @@
 	if(text){
 		int textlen;
 		char *buf;
+		FILE16 *f16;
 		if(PyUnicode_Check(text)){
 			tmp = PyUnicode_AsEncodedString(text,"utf8","strict");
 			if(tmp){
@@ -712,7 +713,6 @@
 			}
 		textlen = PyBytes_Size(text);
 		buf = Malloc(textlen);
-		FILE16 *f16;
 		memcpy(buf,PyBytes_AS_STRING(text),textlen);
 		f16 = MakeFILE16FromString(buf, textlen, "r");
 		SetCloseUnderlying(f16,1);