From 7e125787add066625bb2a3f8eed8234bc4f8cc11 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: utils: 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 Reviewed-by: Laurent Pinchart Reviewed-by: Jean-Michel Hautbois --- utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl') diff --git a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl index 1979e68f..ce396c18 100644 --- a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl +++ b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl @@ -13,8 +13,7 @@ * This file is auto-generated. Do not edit. */ -#ifndef __LIBCAMERA_INTERNAL_IPA_PROXY_{{module_name|upper}}_H__ -#define __LIBCAMERA_INTERNAL_IPA_PROXY_{{module_name|upper}}_H__ +#pragma once #include #include @@ -130,5 +129,3 @@ private: {% endfor %} {%- endif %} } /* namespace libcamera */ - -#endif /* __LIBCAMERA_INTERNAL_IPA_PROXY_{{module_name|upper}}_H__ */ -- cgit v1.2.1