diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-01 19:54:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-01 19:54:36 +0400 |
commit | 975c4e717798e71af3d46f06c3e25ae54e11fcca (patch) | |
tree | 8e9e003ff650780307e5d4a08e4ab3e592b6ebf7 /source/blender/python | |
parent | 646a397297d55452a8908122eb67e0d8eaceef5e (diff) |
fix for msvc, I thought this was only needed for mingw.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |