disable gpu::GeneralizedHough compilation on gcc 4.7

This commit is contained in:
Vladislav Vinogradov 2014-04-04 10:31:33 +04:00
parent a8cb5c3983
commit f8d922ad3e
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@
//
//M*/
#if defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ == 47)
# define CUDA_DISABLER
#endif
#if !defined CUDA_DISABLER
#include <thrust/device_ptr.h>

View 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>(); }