Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-09-10 19:41:01 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-09-10 19:41:01 +0400
commit773ea29b4a42f059c85a51d94e01241bd9fe1051 (patch)
treed3db21a07c6801a1660632ab7253ce8341efe5af /source/blender/blenlib/BLI_linklist_stack.h
parent135f6a72d42d704468dd29c470390df52b905d1b (diff)
Possible fix for MSVC compiling (grr...).
Diffstat (limited to 'source/blender/blenlib/BLI_linklist_stack.h')
-rw-r--r--source/blender/blenlib/BLI_linklist_stack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_linklist_stack.h b/source/blender/blenlib/BLI_linklist_stack.h
index 4562ce2487e..ca050883018 100644
--- a/source/blender/blenlib/BLI_linklist_stack.h
+++ b/source/blender/blenlib/BLI_linklist_stack.h
@@ -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,8 +144,8 @@
/* check for typeof() */
#define BLI_SMALLSTACK_POP(var) \
- (_BLI_SMALLSTACK_CAST(var)) ((_##var##_stack) ? \
- (_BLI_SMALLSTACK_DEL(var), (_##var##_free->link)) : NULL)
+ (_BLI_SMALLSTACK_CAST(var) ((_##var##_stack) ? \
+ (_BLI_SMALLSTACK_DEL(var), (_##var##_free->link)) : NULL))
#define BLI_SMALLSTACK_FREE(var) { \
(void)&(_##var##_type); \