diff mercurial/cext/osutil.c @ 39610:11ed2eadf937

cext: fix warnings when building for py3 on Windows MSVC++ 14 now has standard int types that don't need to be redefined (I didn't go back to see when they came along since the build system wants either 2008 or 2015), but doesn't have ssize_t. The FILE pointer in posixfile is only used on python2.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 13 Sep 2018 17:32:20 -0400
parents f3c314020beb
children 668eff08387f
line wrap: on
line diff
--- a/mercurial/cext/osutil.c	Thu Sep 13 12:43:50 2018 -0400
+++ b/mercurial/cext/osutil.c	Thu Sep 13 17:32:20 2018 -0400
@@ -1217,7 +1217,9 @@
 	char fpmode[4];
 	int fppos = 0;
 	int plus;
+#ifndef IS_PY3K
 	FILE *fp;
+#endif
 
 	if (!PyArg_ParseTupleAndKeywords(args, kwds, PY23("et|si:posixfile",
 							  "et|yi:posixfile"),