[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60017] trunk/blender/source/blender/ blenlib/BLI_linklist_stack.h: Another atempt to fix MSVC compiling.

Bastien Montagne montagne29 at wanadoo.fr
Tue Sep 10 18:52:43 CEST 2013


Revision: 60017
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60017
Author:   mont29
Date:     2013-09-10 16:52:42 +0000 (Tue, 10 Sep 2013)
Log Message:
-----------
Another atempt to fix MSVC compiling.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_linklist_stack.h

Modified: trunk/blender/source/blender/blenlib/BLI_linklist_stack.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_linklist_stack.h	2013-09-10 15:41:01 UTC (rev 60016)
+++ trunk/blender/source/blender/blenlib/BLI_linklist_stack.h	2013-09-10 16:52:42 UTC (rev 60017)
@@ -111,7 +111,7 @@
  * \{ */
 
 #ifdef __GNUC__
-#  define _BLI_SMALLSTACK_CAST(var) typeof(_##var##_type)
+#  define _BLI_SMALLSTACK_CAST(var) (typeof(_##var##_type))
 #else
 #  define _BLI_SMALLSTACK_CAST(var)
 #endif
@@ -144,7 +144,7 @@
 
 /* check for typeof() */
 #define BLI_SMALLSTACK_POP(var) \
-	((_BLI_SMALLSTACK_CAST(var)) ((_##var##_stack) ? \
+	(_BLI_SMALLSTACK_CAST(var) ((_##var##_stack) ? \
 	(_BLI_SMALLSTACK_DEL(var), (_##var##_free->link)) : NULL))
 
 #define BLI_SMALLSTACK_FREE(var)  { \




More information about the Bf-blender-cvs mailing list