[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17160] branches/sim_physics/source/ blender/render/intern/source/volumetric.c: fix for a compile error with msvc

Matt Ebb matt at mke3.net
Wed Oct 22 02:26:19 CEST 2008


Revision: 17160
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17160
Author:   broken
Date:     2008-10-22 02:26:19 +0200 (Wed, 22 Oct 2008)

Log Message:
-----------
fix for a compile error with msvc

Modified Paths:
--------------
    branches/sim_physics/source/blender/render/intern/source/volumetric.c

Modified: branches/sim_physics/source/blender/render/intern/source/volumetric.c
===================================================================
--- branches/sim_physics/source/blender/render/intern/source/volumetric.c	2008-10-22 00:09:12 UTC (rev 17159)
+++ branches/sim_physics/source/blender/render/intern/source/volumetric.c	2008-10-22 00:26:19 UTC (rev 17160)
@@ -56,6 +56,10 @@
 #include "shading.h"
 #include "texture.h"
 
+#if defined( _MSC_VER ) && !defined( __cplusplus )
+# define inline __inline
+#endif // defined( _MSC_VER ) && !defined( __cplusplus )
+
 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
 /* defined in pipeline.c, is hardcopy of active dynamic allocated Render */
 /* only to be used here in this file, it's for speed */





More information about the Bf-blender-cvs mailing list