We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226d1ac commit eefc434Copy full SHA for eefc434
1 file changed
src/exec.cpp
@@ -85,7 +85,7 @@ object BOOST_PYTHON_DECL exec_file(str filename, object global, object local)
85
// should be 'char const *' but older python versions don't use 'const' yet.
86
char *f = python::extract<char *>(filename);
87
#if PY_VERSION_HEX >= 0x03040000
88
- FILE *fs = fopen(f, "r");
+ FILE *fs = _Py_fopen(f, "r");
89
#elif PY_VERSION_HEX >= 0x03000000
90
PyObject *fo = Py_BuildValue("s", f);
91
FILE *fs = _Py_fopen(fo, "r");
0 commit comments