Fix #29738: missing includes in RNA, patch by Dan Eicher.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 2 Jan 2012 13:45:42 +0000 (13:45 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 2 Jan 2012 13:45:42 +0000 (13:45 +0000)
source/blender/makesrna/intern/makesrna.c

index dc7400d..8258ef5 100644 (file)
@@ -2649,6 +2649,7 @@ static void rna_generate_header(BlenderRNA *brna, FILE *f)
 static const char *cpp_classes = ""
 "\n"
 "#include <string>\n"
+"#include <string.h> /* for memcpy */\n"
 "\n"
 "namespace BL {\n"
 "\n"
@@ -2774,6 +2775,7 @@ static void rna_generate_header_cpp(BlenderRNA *brna, FILE *f)
        
        fprintf(f, "#include \"RNA_blender.h\"\n");
        fprintf(f, "#include \"RNA_types.h\"\n");
+       fprintf(f, "#include \"RNA_access.h\"\n");
 
        fprintf(f, "%s", cpp_classes);