diff --git a/examples/advanced/psa_crypto/custom_atca_params.h b/examples/advanced/psa_crypto/custom_atca_params.h index c3d4efbce4..33f879fc2e 100644 --- a/examples/advanced/psa_crypto/custom_atca_params.h +++ b/examples/advanced/psa_crypto/custom_atca_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -17,9 +19,6 @@ * @author Lena Boeckmann * */ -#ifndef CUSTOM_ATCA_PARAMS_H -#define CUSTOM_ATCA_PARAMS_H - #include "cryptoauthlib.h" #include "psa/crypto.h" @@ -121,5 +120,4 @@ extern "C" { } #endif -#endif /* CUSTOM_ATCA_PARAMS_H */ /** @} */ diff --git a/examples/advanced/twr_aloha/control.h b/examples/advanced/twr_aloha/control.h index 195a41c24b..2f751ff2be 100644 --- a/examples/advanced/twr_aloha/control.h +++ b/examples/advanced/twr_aloha/control.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef CONTROL_H -#define CONTROL_H - #ifdef __cplusplus extern "C" { #endif @@ -115,5 +114,3 @@ uint32_t uwb_core_rng_req_remaining(void); #ifdef __cplusplus } #endif - -#endif /* CONTROL_H */ diff --git a/examples/lang_support/official/riot_and_cpp/c_functions.h b/examples/lang_support/official/riot_and_cpp/c_functions.h index 59365ef8f3..be7143908e 100644 --- a/examples/lang_support/official/riot_and_cpp/c_functions.h +++ b/examples/lang_support/official/riot_and_cpp/c_functions.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -19,9 +21,6 @@ #include -#ifndef C_FUNCTIONS_H -#define C_FUNCTIONS_H - /* * all headers defining c functions must be marked as extern "C" when included * into c++ sources @@ -51,4 +50,3 @@ int day_of_week(int day, int month, int year); #endif /** @} */ -#endif /* C_FUNCTIONS_H */ diff --git a/examples/lang_support/official/riot_and_cpp/cpp_class.hpp b/examples/lang_support/official/riot_and_cpp/cpp_class.hpp index 353cd72f71..add37d54fd 100644 --- a/examples/lang_support/official/riot_and_cpp/cpp_class.hpp +++ b/examples/lang_support/official/riot_and_cpp/cpp_class.hpp @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @brief @@ -20,9 +22,6 @@ * @author DangNhat Pham-Huu <51002279@stu.hcmut.edu.vn> */ -#ifndef CPP_CLASS_H -#define CPP_CLASS_H - #include class cpp_class @@ -60,4 +59,3 @@ private: }; /** @} */ -#endif /* CPP_CLASS_H */ diff --git a/examples/networking/coap/gcoap/gcoap_example.h b/examples/networking/coap/gcoap/gcoap_example.h index 79c0c701c2..d7680cd2fe 100644 --- a/examples/networking/coap/gcoap/gcoap_example.h +++ b/examples/networking/coap/gcoap/gcoap_example.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup examples * @{ @@ -16,9 +18,6 @@ * @author Ken Bannister */ -#ifndef GCOAP_EXAMPLE_H -#define GCOAP_EXAMPLE_H - #include #include #include @@ -53,5 +52,4 @@ void notify_observers(void); } #endif -#endif /* GCOAP_EXAMPLE_H */ /** @} */ diff --git a/examples/networking/coap/gcoap_dtls/gcoap_example.h b/examples/networking/coap/gcoap_dtls/gcoap_example.h index eeb6839040..8a4434e288 100644 --- a/examples/networking/coap/gcoap_dtls/gcoap_example.h +++ b/examples/networking/coap/gcoap_dtls/gcoap_example.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup examples * @{ @@ -16,9 +18,6 @@ * @author Ken Bannister */ -#ifndef GCOAP_EXAMPLE_H -#define GCOAP_EXAMPLE_H - #include #include #include @@ -61,5 +60,4 @@ void notify_observers(void); } #endif -#endif /* GCOAP_EXAMPLE_H */ /** @} */ diff --git a/examples/networking/coap/gcoap_dtls/tinydtls_keys.h b/examples/networking/coap/gcoap_dtls/tinydtls_keys.h index cc741865ed..c3fab9382f 100644 --- a/examples/networking/coap/gcoap_dtls/tinydtls_keys.h +++ b/examples/networking/coap/gcoap_dtls/tinydtls_keys.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef TINYDTLS_KEYS_H -#define TINYDTLS_KEYS_H - #ifdef __cplusplus extern "C" { #endif @@ -59,5 +58,3 @@ static const unsigned char ecdsa_pub_key_y[] = { #ifdef __cplusplus } #endif - -#endif /* TINYDTLS_KEYS_H */ diff --git a/examples/networking/dtls/dtls-echo/tinydtls_keys.h b/examples/networking/dtls/dtls-echo/tinydtls_keys.h index 0cb86e63c6..aaeba8be43 100644 --- a/examples/networking/dtls/dtls-echo/tinydtls_keys.h +++ b/examples/networking/dtls/dtls-echo/tinydtls_keys.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef TINYDTLS_KEYS_H -#define TINYDTLS_KEYS_H - #ifdef __cplusplus extern "C" { #endif @@ -62,5 +61,3 @@ static const unsigned char ecdsa_pub_key_y[] = { #ifdef __cplusplus } #endif - -#endif /* TINYDTLS_KEYS_H */ diff --git a/examples/networking/dtls/dtls-sock/dtls_client_credentials.h b/examples/networking/dtls/dtls-sock/dtls_client_credentials.h index 00cc1e4ff7..52643f942e 100644 --- a/examples/networking/dtls/dtls-sock/dtls_client_credentials.h +++ b/examples/networking/dtls/dtls-sock/dtls_client_credentials.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DTLS_CLIENT_CREDENTIALS_H -#define DTLS_CLIENT_CREDENTIALS_H - #ifdef __cplusplus extern "C" { #endif @@ -135,5 +134,3 @@ static const unsigned char known_server_public_key_1_y[] = { #ifdef __cplusplus } #endif - -#endif /* DTLS_CLIENT_CREDENTIALS_H */ diff --git a/examples/networking/dtls/dtls-sock/dtls_server_credentials.h b/examples/networking/dtls/dtls-sock/dtls_server_credentials.h index cb4bb26b41..b03dab2078 100644 --- a/examples/networking/dtls/dtls-sock/dtls_server_credentials.h +++ b/examples/networking/dtls/dtls-sock/dtls_server_credentials.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DTLS_SERVER_CREDENTIALS_H -#define DTLS_SERVER_CREDENTIALS_H - #ifdef __cplusplus extern "C" { #endif @@ -131,5 +130,3 @@ static const unsigned char known_client_public_key_0_y[] = { #ifdef __cplusplus } #endif - -#endif /* DTLS_SERVER_CREDENTIALS_H */ diff --git a/examples/networking/misc/lwm2m/credentials.h b/examples/networking/misc/lwm2m/credentials.h index c48f5aa544..044db2bce9 100644 --- a/examples/networking/misc/lwm2m/credentials.h +++ b/examples/networking/misc/lwm2m/credentials.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef CREDENTIALS_H -#define CREDENTIALS_H - #ifdef __cplusplus extern "C" { #endif @@ -75,5 +74,3 @@ static const uint8_t server_rpk_pub[] = { #ifdef __cplusplus } #endif - -#endif /* CREDENTIALS_H */