cvdef.h: Don't use C's limits.h under C++

Just like with the other headers in the rest of the file.

See e.g. https://stackoverflow.com/questions/36831465/what-difference-does-it-make-when-i-include-limits-or-limits-h-in-my-c-cod
for the reasons, the most important one being that limits.h does not respect
namespaces, which can make problems for downstream consumers of cvdef.h.
This commit is contained in:
Niklas Hambüchen 2020-01-29 02:39:33 +01:00
parent 7e6bdbad9b
commit 70cbc3d883

View File

@ -181,7 +181,12 @@ namespace cv {
#undef abs
#undef Complex
#if defined __cplusplus
#include <limits>
#else
#include <limits.h>
#endif
#include "opencv2/core/hal/interface.h"
#if defined __ICL