summaryrefslogtreecommitdiff
path: root/include/libcamera/version.h.in
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-23 17:23:07 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-24 12:17:35 +0000
commit0a64cf8b7645a90b289f270ad585e8f703350099 (patch)
tree612ac65edaa6ed0dbcee4b8ed1cca26b5978c9eb /include/libcamera/version.h.in
parent8212671ee74ec89c1422807e4bc80a0fb24ff9c2 (diff)
libcamera: Convert to pragma once
Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'include/libcamera/version.h.in')
-rw-r--r--include/libcamera/version.h.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libcamera/version.h.in b/include/libcamera/version.h.in
index 5e9a3091..6e24d0a8 100644
--- a/include/libcamera/version.h.in
+++ b/include/libcamera/version.h.in
@@ -6,11 +6,9 @@
*
* This file is auto-generated. Do not edit.
*/
-#ifndef __LIBCAMERA_VERSION_H__
-#define __LIBCAMERA_VERSION_H__
+
+#pragma once
#define LIBCAMERA_VERSION_MAJOR @LIBCAMERA_VERSION_MAJOR@
#define LIBCAMERA_VERSION_MINOR @LIBCAMERA_VERSION_MINOR@
#define LIBCAMERA_VERSION_PATCH @LIBCAMERA_VERSION_PATCH@
-
-#endif /* __LIBCAMERA_VERSION_H__ */