mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
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:
parent
7e6bdbad9b
commit
70cbc3d883
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user