From 975c4e717798e71af3d46f06c3e25ae54e11fcca Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 1 Oct 2011 15:54:36 +0000 Subject: fix for msvc, I thought this was only needed for mingw. --- source/blender/python/intern/bpy_rna.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index ff2a3dd1303..d367ea92cf4 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -4706,7 +4706,7 @@ PyTypeObject pyrna_struct_meta_idprop_Type= { NULL, /* struct PyMethodDef *tp_methods; */ NULL, /* struct PyMemberDef *tp_members; */ NULL, /* struct PyGetSetDef *tp_getset; */ -#ifdef FREE_WINDOWS +#if defined(_MSC_VER) || defined(FREE_WINDOWS) NULL, /* defer assignment */ #else &PyType_Type, /* struct _typeobject *tp_base; */ @@ -5281,7 +5281,7 @@ PyTypeObject pyrna_prop_collection_iter_Type= { NULL, /* reprfunc tp_str; */ /* will only use these if this is a subtype of a py class */ -#ifdef FREE_WINDOWS +#if defined(_MSC_VER) || defined(FREE_WINDOWS) NULL, /* defer assignment */ #else PyObject_GenericGetAttr, /* getattrofunc tp_getattro; */ @@ -5314,7 +5314,7 @@ PyTypeObject pyrna_prop_collection_iter_Type= { #endif /*** Added in release 2.2 ***/ /* Iterators */ -#ifdef FREE_WINDOWS +#if defined(_MSC_VER) || defined(FREE_WINDOWS) NULL, /* defer assignment */ #else PyObject_SelfIter, /* getiterfunc tp_iter; */ @@ -5705,7 +5705,7 @@ void BPY_rna_init(void) #endif /* for some reason MSVC complains of these */ -#ifdef FREE_WINDOWS +#if defined(_MSC_VER) || defined(FREE_WINDOWS) pyrna_struct_meta_idprop_Type.tp_base= &PyType_Type; pyrna_prop_collection_iter_Type.tp_iter= PyObject_SelfIter; -- cgit v1.2.3