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

Commit 66810a0

Browse files
author
kunkkaliu
committed
add check in MatXimgproc.cc
1 parent 9eee0a7 commit 66810a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cc/core/Mat.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#ifdef HAVE_XIMGPROC
77
#include "MatXimgproc.h"
8-
#endif
8+
#endif // HAVE_XIMGPROC
99

1010
Nan::Persistent<v8::FunctionTemplate> Mat::constructor;
1111

@@ -118,7 +118,7 @@ NAN_MODULE_INIT(Mat::Init) {
118118
MatCalib3d::Init(ctor);
119119
#ifdef HAVE_XIMGPROC
120120
MatXimgproc::Init(ctor);
121-
#endif
121+
#endif // HAVE_XIMGPROC
122122

123123
target->Set(Nan::New("Mat").ToLocalChecked(), ctor->GetFunction());
124124
};

cc/core/MatXimgproc.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifdef HAVE_XIMGPROC
2+
13
#include "MatXimgproc.h"
24
#include "MatXimgprocBindings.h"
35

@@ -21,3 +23,5 @@ NAN_METHOD(MatXimgproc::GuidedFilterAsync) {
2123
info
2224
);
2325
}
26+
27+
#endif // HAVE_XIMGPROC

0 commit comments

Comments
 (0)