libcamera: ipu3: Fix compilation issues with gcc5
GCC5 does not provide prototypes for the math library functions defined
in the math.h header for the std:: namespace.
Include the C++ <cmath> header in place of <math.h> as it defines
overloads for the std::abs and std::fmod function.
This goes intentionally against the libcamera coding guidelines, and
is reported as warning by checkpatch.py.
Fixes: 968ab9bad0 ("libcamera: ipu3: imgu: Calculate ImgU pipe configuration")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
#include "imgu.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <math.h>
|
||||
|
||||
#include <linux/media-bus-format.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user