From 06aca4c52d35bc58858f17f7d5a6259810f7d0e2 Mon Sep 17 00:00:00 2001 From: Haoyu Bai Date: Mon, 8 Jun 2009 16:35:18 +0000 Subject: [PATCH] fix definition of opaque::type_object [SVN r53754] --- include/boost/python/opaque_pointer_converter.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/python/opaque_pointer_converter.hpp b/include/boost/python/opaque_pointer_converter.hpp index 745a5cd4..10eb4234 100644 --- a/include/boost/python/opaque_pointer_converter.hpp +++ b/include/boost/python/opaque_pointer_converter.hpp @@ -121,8 +121,7 @@ opaque opaque::instance; template PyTypeObject opaque::type_object = { - PyObject_HEAD_INIT(0) - 0, + PyVarObject_HEAD_INIT(NULL, 0) 0, sizeof( BOOST_DEDUCED_TYPENAME opaque::python_instance ), 0,