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: 4e998c9ade
This commit is contained in:
TheGoddessInari authored and Alexander Alekhin committed 2019-08-05 17:19:12 +03:00
1 parent b9d6fc9dad
commit 960bb540ec
1 file changed
+1 -1
+1 -1
View File
@@ -441,7 +441,7 @@ struct Hamming
result = vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),0);
result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2);
}
#elif __GNUC__
#elif defined(__GNUC__)
{
//for portability just use unsigned long -- and use the __builtin_popcountll (see docs for __builtin_popcountll)
typedef unsigned long long pop_t;