changes in own recent commit broke MSVC building.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 23 Nov 2010 14:38:02 +0000 (14:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 23 Nov 2010 14:38:02 +0000 (14:38 +0000)
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/rna_access.c

index 0dd9ff5..08aee5c 100644 (file)
@@ -583,7 +583,7 @@ void RNA_pointer_create(struct ID *id, StructRNA *type, void *data, PointerRNA *
 void RNA_blender_rna_pointer_create(PointerRNA *r_ptr);
 void RNA_pointer_recast(PointerRNA *ptr, PointerRNA *r_ptr);
 
-#define PointerRNA_NULL ((PointerRNA){{0}})
+extern const PointerRNA PointerRNA_NULL;
 
 /* Structs */
 
index fd66cf5..c4b0c6b 100644 (file)
@@ -56,6 +56,8 @@
 
 #include "rna_internal.h"
 
+const PointerRNA PointerRNA_NULL= {{0}};
+
 /* Init/Exit */
 
 void RNA_init()