Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit e20a668

Browse files
committed
Put the check inside class declarations
1 parent 45fad20 commit e20a668

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cc/modules/ximgproc/SuperpixelLSC.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef HAVE_XIMGPROC
22

3+
#if OPENCV_MINOR_VERSION > 0
4+
35
#include "SuperpixelLSC.h"
46

57
Nan::Persistent<v8::FunctionTemplate> SuperpixelLSC::constructor;
@@ -55,4 +57,6 @@ NAN_METHOD(SuperpixelLSC::Iterate) {
5557
self->superpixelLsc->getLabelContourMask(self->labelContourMask, false);
5658
}
5759

60+
#endif
61+
5862
#endif // HAVE_XIMGPROC

cc/modules/ximgproc/SuperpixelSLIC.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef HAVE_XIMGPROC
22

3+
#if OPENCV_MINOR_VERSION > 0
4+
35
#include "SuperpixelSLIC.h"
46

57
Nan::Persistent<v8::FunctionTemplate> SuperpixelSLIC::constructor;
@@ -58,4 +60,6 @@ NAN_METHOD(SuperpixelSLIC::Iterate) {
5860
self->superpixelSlic->getLabelContourMask(self->labelContourMask, false);
5961
}
6062

63+
#endif
64+
6165
#endif // HAVE_XIMGPROC

0 commit comments

Comments
 (0)