[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43053] trunk/blender/source/blender/ makesrna/intern/makesrna.c: __func__ define for msvc since its not c99 compat

Campbell Barton ideasman42 at gmail.com
Sun Jan 1 11:27:54 CET 2012


Revision: 43053
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43053
Author:   campbellbarton
Date:     2012-01-01 10:27:53 +0000 (Sun, 01 Jan 2012)
Log Message:
-----------
__func__ define for msvc since its not c99 compat

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/makesrna.c

Modified: trunk/blender/source/blender/makesrna/intern/makesrna.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/makesrna.c	2012-01-01 10:05:04 UTC (rev 43052)
+++ trunk/blender/source/blender/makesrna/intern/makesrna.c	2012-01-01 10:27:53 UTC (rev 43053)
@@ -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 */



More information about the Bf-blender-cvs mailing list