summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-23 14:31:13 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-23 17:39:39 +0300
commitca260d2f5337536e30d1b2501434bd2a93a3e72e (patch)
tree7a8af9ad83101ceaae165614c6ae525f4499086f /src/cam
parentbb5f8cf4951fc5813d60ab806c57c5b5d713f38c (diff)
libcamera: Standardise on C compatibility headers
Now that our usage of C compatibility header is documented, use them consistently through the source code. While at it, group the C and C++ include statements as defined in the coding style, and fix a handful of #include ordering issues. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/cam')
-rw-r--r--src/cam/capture.cpp2
-rw-r--r--src/cam/options.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp
index 8a939c62..d05c01f1 100644
--- a/src/cam/capture.cpp
+++ b/src/cam/capture.cpp
@@ -6,9 +6,9 @@
*/
#include <chrono>
-#include <climits>
#include <iomanip>
#include <iostream>
+#include <limits.h>
#include <sstream>
#include "capture.h"
diff --git a/src/cam/options.cpp b/src/cam/options.cpp
index 7c3948df..1f0631ec 100644
--- a/src/cam/options.cpp
+++ b/src/cam/options.cpp
@@ -5,7 +5,7 @@
* options.cpp - cam - Options parsing
*/
-#include <cassert>
+#include <assert.h>
#include <getopt.h>
#include <iomanip>
#include <iostream>