Fix Flann compilation under nvcc + NEON
authorLindsay Roberts <m@lindsayr.com>
Tue, 19 Feb 2019 12:42:15 +0000 (14:42 +0200)
committerLindsay Roberts <m@lindsayr.com>
Tue, 19 Feb 2019 13:11:01 +0000 (15:11 +0200)
commit7c72e095faf7f824fc43c0f481c066091d30a683
treea0d69bb70e04bceebe4eac5143210e1645f7866b
parentaebb66682bfea3971b4b3dc6eb654cb6a106400f
Fix Flann compilation under nvcc + NEON

All <arm_neon.h> includes in core/cv_cpu_dispatch.h are protected by an
ifndef __CUDACC__ to prevent attempting to use neon intrinsics when
compiling cuda kernels (.cu) -- this prevents hard errors such as
  error: identifier "__builtin_neon_qi" is undefined

Add this same protection to flann/dist.h to fix compilation involving
flann.hpp.
modules/flann/include/opencv2/flann/dist.h