Some Python 3 fixes for _mysql. It ain't fixed but at least it ain't broken yet (for Python <3)

This commit is contained in:
adustman
2012-09-07 20:19:56 +00:00
parent 1294271d28
commit 9737a4cb39

View File

@ -26,6 +26,13 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#if PY_MAJOR_VERSION >= 3
#define IS_PY3K
#endif
#if PY_VERSION_HEX > 0x02060000
#include "bytesobject.h"
#include "intobject.h"
#endif
#include "pymemcompat.h"
#include "structmember.h"
#if defined(MS_WINDOWS)