mercurial/pythoncapi_compat.h
changeset 46389 38b9a63d3a13
parent 46374 e92ca942ddca
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