diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-23 17:23:07 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-24 12:18:11 +0000 |
commit | 0701f756b98b7b4d2e882f2f5aee9d160ebeba72 (patch) | |
tree | 938dc8f18bd265be4a57659af4552e287c50083a /include/libcamera/base/file.h | |
parent | 0a64cf8b7645a90b289f270ad585e8f703350099 (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/file.h')
-rw-r--r-- | include/libcamera/base/file.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libcamera/base/file.h b/include/libcamera/base/file.h index 60851d38..55e8edd9 100644 --- a/include/libcamera/base/file.h +++ b/include/libcamera/base/file.h @@ -4,8 +4,8 @@ * * file.h - File I/O operations */ -#ifndef __LIBCAMERA_BASE_FILE_H__ -#define __LIBCAMERA_BASE_FILE_H__ + +#pragma once #include <sys/types.h> @@ -84,5 +84,3 @@ LIBCAMERA_FLAGS_ENABLE_OPERATORS(File::MapFlag) LIBCAMERA_FLAGS_ENABLE_OPERATORS(File::OpenModeFlag) } /* namespace libcamera */ - -#endif /* __LIBCAMERA_BASE_FILE_H__ */ |