Mercurial > public > mercurial-scm > hg
comparison mercurial/pythoncapi_compat.h @ 46389:38b9a63d3a13
cext: restore the ability to build on Windows with py2
This broke in e92ca942ddca.
Differential Revision: https://phab.mercurial-scm.org/D9867
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 25 Jan 2021 19:03:27 -0500 |
parents | e92ca942ddca |
children |
comparison
equal
deleted
inserted
replaced
46388:d8ad391e10f5 | 46389:38b9a63d3a13 |
---|---|
18 | 18 |
19 #include <Python.h> | 19 #include <Python.h> |
20 #include "frameobject.h" // PyFrameObject, PyFrame_GetBack() | 20 #include "frameobject.h" // PyFrameObject, PyFrame_GetBack() |
21 | 21 |
22 | 22 |
23 /* VC 2008 doesn't know about the inline keyword. */ | |
24 #if defined(_MSC_VER) && _MSC_VER < 1900 | |
25 #define inline __forceinline | |
26 #endif | |
27 | |
23 // Cast argument to PyObject* type. | 28 // Cast argument to PyObject* type. |
24 #ifndef _PyObject_CAST | 29 #ifndef _PyObject_CAST |
25 # define _PyObject_CAST(op) ((PyObject*)(op)) | 30 # define _PyObject_CAST(op) ((PyObject*)(op)) |
26 #endif | 31 #endif |
27 | 32 |