Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: Include/fileobject.h

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Include/node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Include/fileobject.h Thu Dec 27 23:52:36 2012 +0200
+++ b/Include/fileobject.h Thu Dec 27 17:35:12 2012 -0500
@@ -45,7 +45,8 @@
#endif /* Py_LIMITED_API */
/* A routine to check if a file descriptor can be select()-ed. */
-#ifdef HAVE_SELECT
+/* NOTE check below obsolete Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE */
+#if defined(HAVE_SELECT) && !defined(MS_WIN32)
#define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE))
#else
#define _PyIsSelectable_fd(FD) (1)
« no previous file with comments | « no previous file | Include/node.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+