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:
Jacopo Mondi
2020-08-03 15:48:05 +02:00
parent 7876d631d9
commit 375fef72f8
+1 -1
View File
@@ -7,8 +7,8 @@
#include "imgu.h"
#include <cmath>
#include <limits>
#include <math.h>
#include <linux/media-bus-format.h>