summaryrefslogtreecommitdiff
path: root/include/libcamera/base/flags.h
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:18:11 +0000
commit0701f756b98b7b4d2e882f2f5aee9d160ebeba72 (patch)
tree938dc8f18bd265be4a57659af4552e287c50083a /include/libcamera/base/flags.h
parent0a64cf8b7645a90b289f270ad585e8f703350099 (diff)
libcamera: base: 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/base/flags.h')
-rw-r--r--include/libcamera/base/flags.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libcamera/base/flags.h b/include/libcamera/base/flags.h
index adec549d..bff3b93c 100644
--- a/include/libcamera/base/flags.h
+++ b/include/libcamera/base/flags.h
@@ -4,8 +4,8 @@
*
* flags.h - Type-safe enum-based bitfields
*/
-#ifndef __LIBCAMERA_BASE_FLAGS_H__
-#define __LIBCAMERA_BASE_FLAGS_H__
+
+#pragma once
#include <type_traits>
@@ -191,5 +191,3 @@ struct flags_enable_operators<_enum> { \
#endif /* __DOXYGEN__ */
} /* namespace libcamera */
-
-#endif /* __LIBCAMERA_BASE_FLAGS_H__ */