disable gpu::GeneralizedHough compilation on gcc 4.7
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 4 Apr 2014 06:31:33 +0000 (10:31 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 4 Apr 2014 06:31:33 +0000 (10:31 +0400)
modules/gpu/src/cuda/generalized_hough.cu
modules/gpu/src/generalized_hough.cpp

index 5e2041e..b07ef0f 100644 (file)
 //
 //M*/
 
+#if defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ == 47)
+#   define CUDA_DISABLER
+#endif
+
 #if !defined CUDA_DISABLER
 
 #include <thrust/device_ptr.h>
index a92c37d..6f48161 100644 (file)
@@ -46,6 +46,10 @@ using namespace std;
 using namespace cv;
 using namespace cv::gpu;
 
+#if defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ == 47)
+#   define CUDA_DISABLER
+#endif
+
 #if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
 
 Ptr<GeneralizedHough_GPU> cv::gpu::GeneralizedHough_GPU::create(int) { throw_nogpu(); return Ptr<GeneralizedHough_GPU>(); }