diff --git a/modules/objdetect/src/datamatrix.cpp b/modules/objdetect/src/datamatrix.cpp index 44fef2cfaa..392183fab6 100644 --- a/modules/objdetect/src/datamatrix.cpp +++ b/modules/objdetect/src/datamatrix.cpp @@ -1,4 +1,7 @@ +#if CV_SSE2 #include +#endif + #include "precomp.hpp" #include using namespace std; @@ -282,6 +285,7 @@ static deque trailto(CvMat *v, int x, int y, CvMat *terminal) deque cvFindDataMatrix(CvMat *im) { +#if CV_SSE2 int r = im->rows; int c = im->cols; @@ -419,4 +423,8 @@ endo: ; // end search for this o rc.push_back(cc); } return rc; +#else + deque rc; + return rc; +#endif }