diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-01 14:27:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-01 14:27:53 +0400 |
commit | 9b45d8acad715061ea66a4c609b368a69d27fdbf (patch) | |
tree | 5bec89b0169efab455e71603bfadac7290687d87 /source/blender/makesrna | |
parent | 5543928aa761f5504ec724585ad875948f72dac6 (diff) |
__func__ define for msvc since its not c99 compat
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 0a67aa6e65e..dc7400dd9ae 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -43,9 +43,14 @@ #define RNA_VERSION_DATE "FIXME-RNA_VERSION_DATE" #ifdef _WIN32 -#ifndef snprintf -#define snprintf _snprintf +# ifndef snprintf +# define snprintf _snprintf +# endif #endif + +/* so we can use __func__ everywhere */ +#if defined(_MSC_VER) +# define __func__ __FUNCTION__ #endif /* Replace if different */ |