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).
pull/15172/head
TheGoddessInari 6 years ago
parent 3debb98805
commit 4e998c9ade
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 2
      modules/flann/include/opencv2/flann/dist.h

@ -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;

Loading…
Cancel
Save