Skip to content

Commit

Permalink
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the ol…
Browse files Browse the repository at this point in the history
…d non-Py PREFIXED macros, etc?
  • Loading branch information
nnorwitz committed Oct 23, 2005
1 parent a34584b commit 38eb50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ typedef struct {
#define FUTURE_DIVISION "division"

struct _mod; /* Declare the existence of this type */
DL_IMPORT(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
PyCompilerFlags *);
DL_IMPORT(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);

#define ERR_LATE_FUTURE \
"from __future__ imports must occur at the beginning of the file"
Expand Down

0 comments on commit 38eb50b

Please sign in to comment.