diff options
Diffstat (limited to 'AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c')
-rw-r--r-- | AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c b/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c index d1fe57c145..81e5af88a7 100644 --- a/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c +++ b/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c @@ -111,7 +111,7 @@ seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) v = PyObject_AsFileDescriptor( o );
if (v == -1) goto finally;
-#if defined(_MSC_VER) && !defined(UEFI_ENV)
+#if defined(_MSC_VER) && !defined(UEFI_C_SOURCE)
max = 0; /* not used for Win32 */
#else /* !_MSC_VER */
if (v < 0 || v >= FD_SETSIZE) {
@@ -164,7 +164,7 @@ set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) for (j = 0; fd2obj[j].sentinel >= 0; j++) {
fd = fd2obj[j].fd;
if (FD_ISSET(fd, set)) {
-#if !defined(_MSC_VER) || defined(UEFI_ENV)
+#if !defined(_MSC_VER) || defined(UEFI_C_SOURCE)
if (fd > FD_SETSIZE) {
PyErr_SetString(PyExc_SystemError,
"filedescriptor out of range returned in select()");
|