Browse Source

Fix interrogate regression that broke multiview support

rdb 10 years ago
parent
commit
52288e299b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/interrogate/interfaceMakerPythonNative.cxx

+ 1 - 1
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";