Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-01-01 18:49:25 +0300
committerTon Roosendaal <ton@blender.org>2011-01-01 18:49:25 +0300
commit21eb65c450daad399ebbf29986ff6042126e0f09 (patch)
tree29bf5d6e152624546923f75c573b42f1b3bd2ce6 /source/blender/makesrna/intern/makesrna.c
parentfd7152b839713d86569ebb5659f79a81a8399558 (diff)
For non-gnu compilers, the __func__ doesn't exist.
Fix for commit of 2 hours ago.
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 15dbe489f4e..76d6eaaf405 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -972,7 +972,11 @@ static char *rna_def_property_lookup_int_func(FILE *f, StructRNA *srna, Property
if(strcmp(nextfunc, "rna_iterator_array_next") == 0) {
fprintf(f, " ArrayIterator *internal= iter.internal;\n");
fprintf(f, " if(index < 0 || index >= internal->length) {\n");
+ fprintf(f, "#ifdef __GNUC__\n");
fprintf(f, " printf(\"Array itterator out of range: %%s (index %%d range %%d)\\n\", __func__, index, internal->length); \n");
+ fprintf(f, "#else\n");
+ fprintf(f, " printf(\"Array itterator out of range: (index %%d range %%d)\\n\", index, internal->length); \n");
+ fprintf(f, "#endif\n");
fprintf(f, " }\n");
fprintf(f, " else if(internal->skip) {\n");
fprintf(f, " while(index-- > 0) {\n");