diff --git a/modules/hal/include/opencv2/hal/defs.h b/modules/hal/include/opencv2/hal/defs.h index f7d5f35566..d04f003879 100644 --- a/modules/hal/include/opencv2/hal/defs.h +++ b/modules/hal/include/opencv2/hal/defs.h @@ -270,7 +270,7 @@ */ #if !defined _MSC_VER && !defined __BORLANDC__ -# if defined __cplusplus && __cplusplus >= 201103L +# if defined __cplusplus && __cplusplus >= 201103L && !defined __APPLE__ # include typedef std::uint32_t uint; # else