Slightly simplify cpython patch (#1023)

This commit is contained in:
Dexter Chua 2021-01-03 16:48:16 +08:00 committed by GitHub
parent 9dff7308ec
commit a211802b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -14,18 +14,7 @@ index e79e732d1f..864dc78a57 100644
{ {
+#ifdef EMSCRIPTEN +#ifdef EMSCRIPTEN
+ return 0; + return 0;
+#else +#endif
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
HANDLE handle; HANDLE handle;
DWORD flags; DWORD flags;
@@ -1214,6 +1217,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
}
return 0;
#endif
+#endif
}
/* Make the file descriptor non-inheritable.
--
2.25.1