mirror of https://github.com/python/cpython
bpo-46315: Use fopencookie only on Emscripten 3.x and newer (GH-32266)
This commit is contained in:
parent
c93a0ac697
commit
3df0e63aab
|
@ -2072,7 +2072,7 @@ _PyTokenizer_Get(struct tok_state *tok,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__wasi__) || defined(__EMSCRIPTEN__)
|
#if defined(__wasi__) || (defined(__EMSCRIPTEN__) && (__EMSCRIPTEN_major__ >= 3))
|
||||||
// fdopen() with borrowed fd. WASI does not provide dup() and Emscripten's
|
// fdopen() with borrowed fd. WASI does not provide dup() and Emscripten's
|
||||||
// dup() emulation with open() is slow.
|
// dup() emulation with open() is slow.
|
||||||
typedef union {
|
typedef union {
|
||||||
|
|
Loading…
Reference in New Issue