From 52288e299bb16cb94346ca762fa8d56eff4532a4 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 16 Apr 2015 16:57:46 +0200 Subject: [PATCH] Fix interrogate regression that broke multiview support --- dtool/src/interrogate/interfaceMakerPythonNative.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index a35f8c0fb4..ecd2460d7c 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -2636,7 +2636,7 @@ write_module_class(ostream &out, Object *obj) { write_function_slot(out, 2, slots, "bf_getsegcount"); write_function_slot(out, 2, slots, "bf_getcharbuffer"); out << "#endif\n"; - out << "#if PY_MAJOR_VERSION >= 0x02060000\n"; + out << "#if PY_VERSION_HEX >= 0x02060000\n"; write_function_slot(out, 2, slots, "bf_getbuffer"); write_function_slot(out, 2, slots, "bf_releasebuffer"); out << "#endif\n";