Skip to content

Commit 960bb54

Browse files
TheGoddessInarialalek
authored andcommitted
Make sure to use defined(__GNUC__) instead of bare __GNUC__ in flann2 header.
This fixes a compiler error on MSVC with Unreal Engine (at least). backport of commit: 4e998c9
1 parent b9d6fc9 commit 960bb54

File tree

1 file changed

+1
-1
lines changed
  • modules/flann/include/opencv2/flann

1 file changed

+1
-1
lines changed

modules/flann/include/opencv2/flann/dist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ struct Hamming
441441
result = vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),0);
442442
result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2);
443443
}
444-
#elif __GNUC__
444+
#elif defined(__GNUC__)
445445
{
446446
//for portability just use unsigned long -- and use the __builtin_popcountll (see docs for __builtin_popcountll)
447447
typedef unsigned long long pop_t;

0 commit comments

Comments
 (0)