diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-09 15:54:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-09 15:54:13 +0400 |
commit | 2b33c6b0b27c0a4fee5a1a405e012eb4032bba05 (patch) | |
tree | 286d9d2a6b9fd7fa03bb494c7789769fb4dbc3b5 /source/blender/makesrna/intern | |
parent | fe48e008e5b011bced5544818a1afc9a12ab98f4 (diff) |
workaround for msvc not supporting variable length args in macros.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index ea23fea0c2c..1ccd6d9a1d7 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -5383,6 +5383,11 @@ void _RNA_warning(const char *format, ...) vprintf(format, args); va_end(args); + /* gcc macro adds '\n', but cant use for other compilers */ +#ifndef __GNUC__ + fputc('\n', stdout); +#endif + #ifdef WITH_PYTHON { extern void PyC_LineSpit(void); |