Go to the documentation of this file.
33 #ifndef __PythonQtPythonInclude_h
34 #define __PythonQtPythonInclude_h
37 #undef _POSIX_C_SOURCE
44 #define PYTHONQT_RESTORE_KEYWORDS
50 #if defined(PYTHONQT_USE_RELEASE_PYTHON_FALLBACK) && defined(_DEBUG)
52 #if defined(_MSC_VER) && _MSC_VER >= 1400
53 #define _CRT_NOFORCE_MANIFEST 1
54 #define _STL_NOFORCE_MANIFEST 1
69 #ifdef PYTHONQT_RESTORE_KEYWORDS
71 #undef PYTHONQT_RESTORE_KEYWORDS
74 #if PY_MAJOR_VERSION >= 3
77 #define PyString_FromString PyUnicode_FromString
78 #define PyString_AS_STRING PyUnicode_AsUTF8
79 #define PyString_AsString PyUnicode_AsUTF8
80 #define PyString_FromFormat PyUnicode_FromFormat
81 #define PyString_Check PyUnicode_Check
83 #define PyInt_Type PyLong_Type
84 #define PyInt_FromLong PyLong_FromLong
85 #define PyInt_AS_LONG PyLong_AS_LONG
86 #define PyInt_Check PyLong_Check
87 #define PyInt_AsLong PyLong_AsLong
91 #define PyBytes_Type PyString_Type
92 #define PyBytes_Check PyString_Check
93 #define PyBytes_AS_STRING PyString_AS_STRING
94 #define PyBytes_AsString PyString_AsString
95 #define PyBytes_GET_SIZE PyString_GET_SIZE
96 #define PyBytes_FromStringAndSize PyString_FromStringAndSize