Commit bcd3ea86 authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #5204: Define _PyVerify_fd on VC6 to make

test_fdopen (test_os.py) pass.
parent e4ae63c4
......@@ -75,6 +75,9 @@ int _PyFile_SanitizeMode(char *mode);
* Visual Studio 2005
*/
int _PyVerify_fd(int fd);
#elif defined _MSC_VER && _MSC_VER >= 1200
/* fdopen doesn't set errno EBADF and crashes for large fd on debug build */
#define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0)
#else
#define _PyVerify_fd(A) (1) /* dummy */
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment