Skip to content

Commit 0d012f2

Browse files
committed
Expose CompileString, not CompileStringFlags under the
limited API.
1 parent 66f2623 commit 0d012f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Include/pythonrun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int,
7474
#endif
7575

7676
#ifdef Py_LIMITED_API
77-
PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int);
77+
PyAPI_FUNC(PyObject *) Py_CompileString(const char *, const char *, int);
7878
#else
7979
#define Py_CompileString(str, p, s) Py_CompileStringExFlags(str, p, s, NULL, -1)
8080
#define Py_CompileStringFlags(str, p, s, f) Py_CompileStringExFlags(str, p, s, f, -1)

PC/python3.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ EXPORTS
632632
Py_AddPendingCall=python32.Py_AddPendingCall
633633
Py_AtExit=python32.Py_AtExit
634634
Py_BuildValue=python32.Py_BuildValue
635-
Py_CompileStringFlags=python32.Py_CompileStringFlags
635+
Py_CompileString=python32.Py_CompileString
636636
Py_DecRef=python32.Py_DecRef
637637
Py_EndInterpreter=python32.Py_EndInterpreter
638638
Py_Exit=python32.Py_Exit

0 commit comments

Comments
 (0)