Go to the documentation of this file.
33#ifndef __PythonQtPythonInclude_h
34#define __PythonQtPythonInclude_h
38# undef _POSIX_C_SOURCE
48#define PYTHONQT_RESTORE_KEYWORDS
54# if defined(__MINGW32__)
62#if defined(PYTHONQT_USE_RELEASE_PYTHON_FALLBACK) && defined(_DEBUG)
64#if defined(_MSC_VER) && _MSC_VER >= 1400
65#define _CRT_NOFORCE_MANIFEST 1
66#define _STL_NOFORCE_MANIFEST 1
81#ifdef PYTHONQT_RESTORE_KEYWORDS
83#undef PYTHONQT_RESTORE_KEYWORDS
86#if PY_MAJOR_VERSION >= 3
89#define PyString_FromString PyUnicode_FromString
90#define PyString_AS_STRING PyUnicode_AsUTF8
91#define PyString_AsString PyUnicode_AsUTF8
92#define PyString_FromFormat PyUnicode_FromFormat
93#define PyString_Check PyUnicode_Check
95#define PyInt_Type PyLong_Type
96#define PyInt_FromLong PyLong_FromLong
97#define PyInt_AS_LONG PyLong_AS_LONG
98#define PyInt_Check PyLong_Check
99#define PyInt_AsLong PyLong_AsLong
103#define PyBytes_Type PyString_Type
104#define PyBytes_Check PyString_Check
105#define PyBytes_AS_STRING PyString_AS_STRING
106#define PyBytes_AsString PyString_AsString
107#define PyBytes_GET_SIZE PyString_GET_SIZE
108#define PyBytes_FromStringAndSize PyString_FromStringAndSize