diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-05-24 21:40:05 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-05-24 21:40:05 +0300 |
commit | 3ca3098ed7941bc0c8a9c1bd0fc0ab2ba3ff3f4d (patch) | |
tree | 2030cb823b7cf5a2686fad10bde947073a540309 /source/blender/blenlib/BLI_linklist_stack.h | |
parent | 995702da4855dab4f8cd29291be7bc1c3c3ffaf0 (diff) |
DynTopo: Enable BLI_linklist_stack type checking for clang-cl
and fix a few errors.
Diffstat (limited to 'source/blender/blenlib/BLI_linklist_stack.h')
-rw-r--r-- | source/blender/blenlib/BLI_linklist_stack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_linklist_stack.h b/source/blender/blenlib/BLI_linklist_stack.h index be98304e6b5..9af98172b78 100644 --- a/source/blender/blenlib/BLI_linklist_stack.h +++ b/source/blender/blenlib/BLI_linklist_stack.h @@ -52,7 +52,7 @@ #define BLI_LINKSTACK_SIZE(var) BLI_mempool_len(var##_pool_) /* check for typeof() */ -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) # define BLI_LINKSTACK_PUSH(var, ptr) \ (CHECK_TYPE_INLINE(ptr, typeof(var##_type_)), \ BLI_linklist_prepend_pool(&(var), ptr, var##_pool_)) |