diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-03-20 06:03:43 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-03-20 06:03:43 +0300 |
commit | 8e5c407fc446b35042c626e7d60ff9a2336093f4 (patch) | |
tree | bc0e5dae2d731aa05ac925c313441c054e3ea700 /source/blender | |
parent | b65933e7b313c5dd857280dd5cc4fb9c44e0e83d (diff) |
Fix compile error with MSVC2013 - Can't use __func__ (from BLI_assert) in inlined functions
ERROR: blenlib/intern/math_base_inline.c:371 - '__func__' : undeclared identifier (C:\blenderdev\master2\blender\source\blender\editors\lattice\editlattice_tools.c) [C2065]
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index eed06c7841b..1f517471407 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -368,8 +368,10 @@ MINLINE int compare_ff_relative(float a, float b, const float max_diff, const in { union {float f; int i;} ua, ub; +#if 0 /* No BLI_assert in INLINE :/ */ BLI_assert(sizeof(float) == sizeof(int)); BLI_assert(max_ulps < (1 << 22)); +#endif if (fabsf(a - b) <= max_diff) { return 1; |