Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38eb50b

Browse files
committed
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the old non-Py PREFIXED macros, etc?
1 parent a34584b commit 38eb50b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Include/compile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ typedef struct {
2424
#define FUTURE_DIVISION "division"
2525

2626
struct _mod; /* Declare the existence of this type */
27-
DL_IMPORT(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
27+
PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
2828
PyCompilerFlags *);
29-
DL_IMPORT(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
29+
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
3030

3131
#define ERR_LATE_FUTURE \
3232
"from __future__ imports must occur at the beginning of the file"

0 commit comments

Comments
 (0)