File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ static PyStatus add_main_module(PyInterpreterState *interp);
71
71
static PyStatus init_import_site (void );
72
72
static PyStatus init_set_builtins_open (void );
73
73
static PyStatus init_sys_streams (PyThreadState * tstate );
74
+ #ifdef __ANDROID__
74
75
static void init_android_streams (PyThreadState * tstate );
76
+ #endif
75
77
static void wait_for_thread_shutdown (PyThreadState * tstate );
76
78
static void call_ll_exitfuncs (_PyRuntimeState * runtime );
77
79
@@ -2724,6 +2726,7 @@ init_sys_streams(PyThreadState *tstate)
2724
2726
}
2725
2727
2726
2728
2729
+ #ifdef __ANDROID__
2727
2730
/* Redirecting streams to the log is a convenience, but won't be critical for
2728
2731
every app, so failures of this function are non-fatal. */
2729
2732
static void
@@ -2744,6 +2747,7 @@ init_android_streams(PyThreadState *tstate)
2744
2747
}
2745
2748
Py_XDECREF (_android_support );
2746
2749
}
2750
+ #endif
2747
2751
2748
2752
2749
2753
static void
You can’t perform that action at this time.
0 commit comments