__func__ define for msvc since its not c99 compat
authorCampbell Barton <ideasman42@gmail.com>
Sun, 1 Jan 2012 10:27:53 +0000 (10:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 1 Jan 2012 10:27:53 +0000 (10:27 +0000)
source/blender/makesrna/intern/makesrna.c

index 0a67aa6..dc7400d 100644 (file)
 #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 */