diff --git a/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp b/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp index 1645cef9ec..c0fd9c5112 100644 --- a/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp +++ b/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp @@ -22,6 +22,9 @@ using namespace VISP_NAMESPACE_NAME; #endif +#if defined(VISP_HAVE_MODULE_IMGPROC) && defined(VISP_HAVE_DISPLAY) && \ + (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV) || defined(VISP_HAVE_STBIMAGE) || defined(VISP_HAVE_SIMDLIB)) && \ + ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L))) namespace { void display(vpImage &I_display, vpImage &I_color_res, const vpImage &I_color_adjust, @@ -49,6 +52,7 @@ void display(vpImage &I_display, vpImage &I_color_res, const vpI vpDisplay::getClick(I_display); } } +#endif int main(int argc, const char **argv) {