##// END OF EJS Templates
cext: fix warnings when building for py3 on Windows...
Matt Harbison -
r39646:11ed2ead default
parent child Browse files
Show More
@@ -1217,7 +1217,9 b' static PyObject *posixfile(PyObject *sel'
1217 char fpmode[4];
1217 char fpmode[4];
1218 int fppos = 0;
1218 int fppos = 0;
1219 int plus;
1219 int plus;
1220 #ifndef IS_PY3K
1220 FILE *fp;
1221 FILE *fp;
1222 #endif
1221
1223
1222 if (!PyArg_ParseTupleAndKeywords(args, kwds, PY23("et|si:posixfile",
1224 if (!PyArg_ParseTupleAndKeywords(args, kwds, PY23("et|si:posixfile",
1223 "et|yi:posixfile"),
1225 "et|yi:posixfile"),
@@ -3,6 +3,7 b''
3
3
4 #ifdef _WIN32
4 #ifdef _WIN32
5 #ifdef _MSC_VER
5 #ifdef _MSC_VER
6 #if _MSC_VER < 1900
6 /* msvc 6.0 has problems */
7 /* msvc 6.0 has problems */
7 #define inline __inline
8 #define inline __inline
8 #if defined(_WIN64)
9 #if defined(_WIN64)
@@ -21,6 +22,18 b' typedef unsigned short uint16_t;'
21 typedef unsigned long uint32_t;
22 typedef unsigned long uint32_t;
22 typedef unsigned __int64 uint64_t;
23 typedef unsigned __int64 uint64_t;
23 #else
24 #else
25 /* VC++ 14 */
26 #include <stdint.h>
27
28 #if defined(_WIN64)
29 typedef __int64 ssize_t;
30 #else
31 typedef int ssize_t;
32 #endif
33 #endif /* _MSC_VER < 1900 */
34
35 #else
36 /* not msvc */
24 #include <stdint.h>
37 #include <stdint.h>
25 #endif
38 #endif
26 #else
39 #else
General Comments 0
You need to be logged in to leave comments. Login now