diff --git a/pkg/cryptoauthlib/include/atca.h b/pkg/cryptoauthlib/include/atca.h index 75109c2630b7..abfc8e048c14 100644 --- a/pkg/cryptoauthlib/include/atca.h +++ b/pkg/cryptoauthlib/include/atca.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_cryptoauthlib * @{ @@ -17,9 +19,6 @@ * */ -#ifndef ATCA_H -#define ATCA_H - #include "periph/i2c.h" #include "cryptoauthlib.h" @@ -74,5 +73,4 @@ typedef struct { } #endif -#endif /* ATCA_H */ /** @} */ diff --git a/pkg/cryptoauthlib/include/atca_config.h b/pkg/cryptoauthlib/include/atca_config.h index da93b09a49fb..5676a86e7d10 100644 --- a/pkg/cryptoauthlib/include/atca_config.h +++ b/pkg/cryptoauthlib/include/atca_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_cryptoauthlib * @{ @@ -18,9 +20,6 @@ * */ -#ifndef ATCA_CONFIG_H -#define ATCA_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -48,5 +47,4 @@ extern "C" { #ifdef __cplusplus } #endif -#endif /* ATCA_CONFIG_H */ /** @} */ diff --git a/pkg/cryptoauthlib/include/atca_params.h b/pkg/cryptoauthlib/include/atca_params.h index 4058be52b80a..6264a53d7fa1 100644 --- a/pkg/cryptoauthlib/include/atca_params.h +++ b/pkg/cryptoauthlib/include/atca_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_cryptoauthlib * @{ @@ -17,9 +19,6 @@ * */ -#ifndef ATCA_PARAMS_H -#define ATCA_PARAMS_H - #include "board.h" #include "periph/i2c.h" #include "atca.h" @@ -124,5 +123,4 @@ extern ATCADevice atca_devs_ptr[ATCA_NUMOF]; } #endif -#endif /* ATCA_PARAMS_H */ /** @} */ diff --git a/pkg/cryptoauthlib/include/atecc608a_config.h b/pkg/cryptoauthlib/include/atecc608a_config.h index be77d7b6e781..233671ebab5f 100644 --- a/pkg/cryptoauthlib/include/atecc608a_config.h +++ b/pkg/cryptoauthlib/include/atecc608a_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @file * @brief Example configuration for Microchip CryptoAuth devices @@ -26,9 +28,6 @@ * */ -#ifndef ATECC608A_CONFIG_H -#define ATECC608A_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -112,5 +111,3 @@ const uint8_t atecc608a_config[] = { #ifdef __cplusplus } #endif - -#endif /* ATECC608A_CONFIG_H */ diff --git a/pkg/cryptoauthlib/include/cryptoauthlib_test.h b/pkg/cryptoauthlib/include/cryptoauthlib_test.h index bbb2d7aa248b..87511598a02a 100644 --- a/pkg/cryptoauthlib/include/cryptoauthlib_test.h +++ b/pkg/cryptoauthlib/include/cryptoauthlib_test.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_cryptoauthlib * @{ @@ -16,9 +18,6 @@ * */ -#ifndef CRYPTOAUTHLIB_TEST_H -#define CRYPTOAUTHLIB_TEST_H - #ifdef __cplusplus extern "C" { #endif @@ -38,5 +37,4 @@ int atca_run_cmd(char *command, size_t len); } #endif -#endif /* CRYPTOAUTHLIB_TEST_H */ /** @} */ diff --git a/pkg/driver_bme680/include/bme680_hal.h b/pkg/driver_bme680/include/bme680_hal.h index fbd148572ebb..54a9a8856490 100644 --- a/pkg/driver_bme680/include/bme680_hal.h +++ b/pkg/driver_bme680/include/bme680_hal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_bme680 * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef BME680_HAL_H -#define BME680_HAL_H - #ifdef __cplusplus extern "C" { #endif @@ -45,5 +44,4 @@ int8_t bme680_spi_write_hal(uint8_t dev_id, uint8_t reg_addr, } #endif -#endif /* BME680_HAL_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/cryptocell_310_util.h b/pkg/driver_cryptocell_310/include/cryptocell_310_util.h index c49e135f959f..7493445f864c 100644 --- a/pkg/driver_cryptocell_310/include/cryptocell_310_util.h +++ b/pkg/driver_cryptocell_310/include/cryptocell_310_util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -16,8 +18,6 @@ * @author Lena Boeckmann * */ -#ifndef CRYPTOCELL_310_UTIL_H -#define CRYPTOCELL_310_UTIL_H #ifdef __cplusplus extern "C" { @@ -68,5 +68,4 @@ void driver_cryptocell_310_terminate(void); } #endif -#endif /* CRYPTOCELL_310_UTIL_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_aes_common.h b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_aes_common.h index 400e90d4b437..fed367d10a81 100644 --- a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_aes_common.h +++ b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_aes_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -18,9 +20,6 @@ * */ -#ifndef PSA_CRYPTOCELL_310_AES_COMMON_H -#define PSA_CRYPTOCELL_310_AES_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -69,5 +68,4 @@ psa_status_t cryptocell_310_common_aes_encrypt_decrypt(SaSiAesUserContext_t *ctx } #endif -#endif /* PSA_CRYPTOCELL_310_AES_COMMON_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_ecc_common.h b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_ecc_common.h index 98ce0b068d46..2f040f38513e 100644 --- a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_ecc_common.h +++ b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_ecc_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -18,9 +20,6 @@ * */ -#ifndef PSA_CRYPTOCELL_310_ECC_COMMON_H -#define PSA_CRYPTOCELL_310_ECC_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -140,5 +139,4 @@ psa_status_t cryptocell_310_common_ecc_verify(const uint8_t *pub_key, } #endif -#endif /* PSA_CRYPTOCELL_310_ECC_COMMON_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_hashes_common.h b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_hashes_common.h index aeb3a2544388..13b058a40b4e 100644 --- a/pkg/driver_cryptocell_310/include/psa_cryptocell_310_hashes_common.h +++ b/pkg/driver_cryptocell_310/include/psa_cryptocell_310_hashes_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -17,8 +19,6 @@ * @author Lena Boeckmann * */ -#ifndef PSA_CRYPTOCELL_310_HASHES_COMMON_H -#define PSA_CRYPTOCELL_310_HASHES_COMMON_H #ifdef __cplusplus extern "C" { @@ -67,5 +67,4 @@ psa_status_t cryptocell_310_common_hash_finish(CRYS_HASHUserContext_t *ctx, } #endif -#endif /* PSA_CRYPTOCELL_310_HASHES_COMMON_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_error.h b/pkg/driver_cryptocell_310/include/psa_error.h index cb522406c55b..1bde0060c4b6 100644 --- a/pkg/driver_cryptocell_310/include/psa_error.h +++ b/pkg/driver_cryptocell_310/include/psa_error.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -16,8 +18,6 @@ * @author Lena Boeckmann * */ -#ifndef PSA_ERROR_H -#define PSA_ERROR_H #ifdef __cplusplus extern "C" { @@ -58,5 +58,4 @@ const char *cryptocell310_status_to_humanly_readable(uint32_t status); } #endif -#endif /* PSA_ERROR_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_periph_aes_ctx.h b/pkg/driver_cryptocell_310/include/psa_periph_aes_ctx.h index ce0f7360c6f4..6ab7021e4228 100644 --- a/pkg/driver_cryptocell_310/include/psa_periph_aes_ctx.h +++ b/pkg/driver_cryptocell_310/include/psa_periph_aes_ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -16,8 +18,6 @@ * @author Lena Boeckmann * */ -#ifndef PSA_PERIPH_AES_CTX_H -#define PSA_PERIPH_AES_CTX_H #ifdef __cplusplus extern "C" { @@ -37,5 +37,4 @@ typedef SaSiAesUserContext_t psa_cipher_aes_128_ctx_t; } #endif -#endif /* PSA_PERIPH_AES_CTX_H */ /** @} */ diff --git a/pkg/driver_cryptocell_310/include/psa_periph_hashes_ctx.h b/pkg/driver_cryptocell_310/include/psa_periph_hashes_ctx.h index c4e5f74b6e51..70f9c99d022b 100644 --- a/pkg/driver_cryptocell_310/include/psa_periph_hashes_ctx.h +++ b/pkg/driver_cryptocell_310/include/psa_periph_hashes_ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_driver_cryptocell_310 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PSA_PERIPH_HASHES_CTX_H -#define PSA_PERIPH_HASHES_CTX_H - #ifdef __cplusplus extern "C" { #endif @@ -60,5 +59,4 @@ typedef CRYS_HASHUserContext_t psa_hashes_sha512_ctx_t; } #endif -#endif /* PSA_PERIPH_HASHES_CTX_H */ /** @} */ diff --git a/pkg/edhoc-c/include/edhoc_config.h b/pkg/edhoc-c/include/edhoc_config.h index 7d37be2e9e10..cbba0edfbfcc 100644 --- a/pkg/edhoc-c/include/edhoc_config.h +++ b/pkg/edhoc-c/include/edhoc_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_edhoc_c * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef EDHOC_CONFIG_H -#define EDHOC_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -117,5 +116,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* EDHOC_CONFIG_H */ diff --git a/pkg/esp8266_sdk/bootloader/sdkconfig.h b/pkg/esp8266_sdk/bootloader/sdkconfig.h index 182f272a8224..800cea29f0f0 100644 --- a/pkg/esp8266_sdk/bootloader/sdkconfig.h +++ b/pkg/esp8266_sdk/bootloader/sdkconfig.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_esp8266_sdk * @{ @@ -24,9 +26,6 @@ * @author iosabi */ -#ifndef SDKCONFIG_H -#define SDKCONFIG_H - #if !DOXYGEN #include "riotbuild.h" @@ -81,5 +80,4 @@ extern "C" { #endif #endif /* !DOXYGEN */ -#endif /* SDKCONFIG_H */ /** @} */ diff --git a/pkg/esp8266_sdk/bootloader/sdkconfig_default.h b/pkg/esp8266_sdk/bootloader/sdkconfig_default.h index 4e110bfaabd5..03e9b4baf351 100644 --- a/pkg/esp8266_sdk/bootloader/sdkconfig_default.h +++ b/pkg/esp8266_sdk/bootloader/sdkconfig_default.h @@ -1,11 +1,10 @@ +#pragma once + /* * Generated by ./update_mk.sh, don't modify directly. * Default CONFIG_ parameters from the SDK package. */ -#ifndef SDKCONFIG_DEFAULT_H -#define SDKCONFIG_DEFAULT_H - #ifdef __cplusplus extern "C" { #endif @@ -24,5 +23,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* SDKCONFIG_DEFAULT_H */ diff --git a/pkg/etl/config/etl_profile.h b/pkg/etl/config/etl_profile.h index 97fe2d23d981..09be6f42406a 100644 --- a/pkg/etl/config/etl_profile.h +++ b/pkg/etl/config/etl_profile.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_etl * @brief @@ -18,8 +20,6 @@ * This is configured by compiler defines the in Makefile.include * @author Jens Wetterich */ -#ifndef ETL_PROFILE_H -#define ETL_PROFILE_H #ifdef __cplusplus extern "C" { @@ -50,5 +50,4 @@ extern "C" { #ifdef __cplusplus } #endif -#endif /* ETL_PROFILE_H */ /** @} */ diff --git a/pkg/fatfs/fatfs_diskio/mtd/include/fatfs_diskio_mtd.h b/pkg/fatfs/fatfs_diskio/mtd/include/fatfs_diskio_mtd.h index 32924c02ce35..03ea7626cdd2 100644 --- a/pkg/fatfs/fatfs_diskio/mtd/include/fatfs_diskio_mtd.h +++ b/pkg/fatfs/fatfs_diskio/mtd/include/fatfs_diskio_mtd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_fatfs * @brief @@ -15,9 +17,6 @@ * @author Michel Rottleuthner */ -#ifndef FATFS_DISKIO_MTD_H -#define FATFS_DISKIO_MTD_H - #ifdef __cplusplus extern "C" { #endif @@ -42,5 +41,4 @@ extern "C" { } #endif -#endif /* FATFS_DISKIO_MTD_H */ /** @} */ diff --git a/pkg/flashdb/include/fal_cfg.h b/pkg/flashdb/include/fal_cfg.h index 8884845db8e9..e3ed66539e30 100644 --- a/pkg/flashdb/include/fal_cfg.h +++ b/pkg/flashdb/include/fal_cfg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_flashdb * @{ @@ -22,9 +24,6 @@ * @author Benjamin Valentin */ -#ifndef FAL_CFG_H -#define FAL_CFG_H - #include "board.h" #include "macros/units.h" #include "mtd_default.h" @@ -195,5 +194,4 @@ extern struct fal_flash_dev mtd_flash0; #ifdef __cplusplus } #endif -#endif /* FAL_CFG_H */ /** @} */ diff --git a/pkg/flashdb/include/fdb_cfg.h b/pkg/flashdb/include/fdb_cfg.h index 188a027d1ae0..cfac023f1ce1 100644 --- a/pkg/flashdb/include/fdb_cfg.h +++ b/pkg/flashdb/include/fdb_cfg.h @@ -4,14 +4,13 @@ * SPDX-License-Identifier: Apache-2.0 */ +#pragma once + /** * @file * @brief configuration file */ -#ifndef FDB_CFG_H -#define FDB_CFG_H - #ifdef __cplusplus extern "C" { #endif @@ -26,4 +25,3 @@ extern "C" { #ifdef __cplusplus } #endif -#endif /* FDB_CFG_H */ diff --git a/pkg/libb2/include/libb2_config.h b/pkg/libb2/include/libb2_config.h index 6f00116c9c47..0386aec2eb09 100644 --- a/pkg/libb2/include/libb2_config.h +++ b/pkg/libb2/include/libb2_config.h @@ -1,5 +1,4 @@ -#ifndef LIBB2_CONFIG_H -#define LIBB2_CONFIG_H +#pragma once #include "cpu.h" @@ -18,4 +17,3 @@ extern "C" { #ifdef __cplusplus } #endif -#endif /* LIBB2_CONFIG_H */ diff --git a/pkg/libcose/include/cose/crypto/riot.h b/pkg/libcose/include/cose/crypto/riot.h index 4c2bbc73d831..5c6e0b50a00a 100644 --- a/pkg/libcose/include/cose/crypto/riot.h +++ b/pkg/libcose/include/cose/crypto/riot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_libcose * @@ -17,9 +19,6 @@ * @author Francisco Molina */ -#ifndef COSE_CRYPTO_RIOT_H -#define COSE_CRYPTO_RIOT_H - #ifdef __cplusplus extern "C" { #endif @@ -51,6 +50,5 @@ void libcose_crypt_init(void); } #endif -#endif /* COSE_CRYPTO_RIOT_H */ /** @} */ diff --git a/pkg/libschc/include/libschc/config.h b/pkg/libschc/include/libschc/config.h index 88b9c1a72f68..b5be93f43a57 100644 --- a/pkg/libschc/include/libschc/config.h +++ b/pkg/libschc/include/libschc/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_libschc_config libSCHC compile-time configuration * @ingroup pkg_libschc @@ -18,8 +20,6 @@ * * @author Martine S. Lenders */ -#ifndef LIBSCHC_CONFIG_H -#define LIBSCHC_CONFIG_H #ifdef __cplusplus extern "C" { @@ -68,5 +68,4 @@ extern "C" { } #endif -#endif /* LIBSCHC_CONFIG_H */ /** @} */ diff --git a/pkg/libschc/include/rules/rule_config.h b/pkg/libschc/include/rules/rule_config.h index 139f948518ae..f45ebde82d14 100644 --- a/pkg/libschc/include/rules/rule_config.h +++ b/pkg/libschc/include/rules/rule_config.h @@ -16,13 +16,13 @@ * along with this program. If not, see . */ +#pragma once + /** * @internal * @author boortmans * @author Martine S. Lenders */ -#ifndef RULES_RULE_CONFIG_H -#define RULES_RULE_CONFIG_H #include "rules.h" @@ -33,5 +33,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* RULES_RULE_CONFIG_H */ diff --git a/pkg/libschc/include/rules/rules.h b/pkg/libschc/include/rules/rules.h index 9374e57d8415..1aa90e26bb4a 100644 --- a/pkg/libschc/include/rules/rules.h +++ b/pkg/libschc/include/rules/rules.h @@ -16,13 +16,13 @@ * along with this program. If not, see . */ +#pragma once + /** * @internal * @author boortmans * @author Martine S. Lenders */ -#ifndef RULES_RULES_H -#define RULES_RULES_H #include "kernel_defines.h" @@ -340,5 +340,3 @@ static const struct schc_device* devices[] = { &node1, &node2 }; #ifdef __cplusplus } #endif - -#endif /* RULES_RULES_H */ diff --git a/pkg/libschc/include/schc_config.h b/pkg/libschc/include/schc_config.h index 96cea7a8dcef..1c47a778b1c1 100644 --- a/pkg/libschc/include/schc_config.h +++ b/pkg/libschc/include/schc_config.h @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#pragma once + /** * @addtogroup pkg_libschc_config * @@ -31,8 +33,6 @@ * @author boortmans * @author Martine S. Lenders */ -#ifndef SCHC_CONFIG_H -#define SCHC_CONFIG_H #include #include @@ -121,7 +121,6 @@ extern "C" { } #endif -#endif /* SCHC_CONFIG_H */ /** * @internal * @} diff --git a/pkg/littlefs/lfs_log.h b/pkg/littlefs/lfs_log.h index e7d18eaaf08b..0598142890dc 100644 --- a/pkg/littlefs/lfs_log.h +++ b/pkg/littlefs/lfs_log.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_littlefs * @{ @@ -21,9 +23,6 @@ * */ -#ifndef LFS_LOG_H -#define LFS_LOG_H - #ifdef __cplusplus extern "C" { #endif @@ -70,5 +69,4 @@ extern "C" { /** @} */ -#endif /* LFS_LOG_H */ /** @} */ diff --git a/pkg/littlefs2/lfs_log.h b/pkg/littlefs2/lfs_log.h index 0a2b27152b01..5ebf31fcdcf5 100644 --- a/pkg/littlefs2/lfs_log.h +++ b/pkg/littlefs2/lfs_log.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_littlefs2 * @{ @@ -21,9 +23,6 @@ * */ -#ifndef LFS_LOG_H -#define LFS_LOG_H - #ifdef __cplusplus extern "C" { #endif @@ -91,5 +90,4 @@ extern "C" { /** @} */ -#endif /* LFS_LOG_H */ /** @} */ diff --git a/pkg/lua/contrib/binsearch.h b/pkg/lua/contrib/binsearch.h index 6db2f303911c..23b46535a9dd 100644 --- a/pkg/lua/contrib/binsearch.h +++ b/pkg/lua/contrib/binsearch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @internal * @file @@ -41,9 +43,6 @@ * @{ */ -#ifndef BINSEARCH_H -#define BINSEARCH_H - #include #include @@ -133,6 +132,5 @@ const void *binsearch_str_p(const void *start, size_t offset, size_t stride, } #endif -#endif /* BINSEARCH_H */ /** @internal * @} */ diff --git a/pkg/lua/include/lua_builtin.h b/pkg/lua/include/lua_builtin.h index fcfec30bdf58..fe847fd4adf7 100644 --- a/pkg/lua/include/lua_builtin.h +++ b/pkg/lua/include/lua_builtin.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup pkg_lua * @{ @@ -22,9 +25,6 @@ * they will default to zero (or NULL), that is, empty tables. */ -#ifndef LUA_BUILTIN_H -#define LUA_BUILTIN_H - #ifdef __cplusplus extern "C" { #endif @@ -79,6 +79,5 @@ extern WEAK const size_t lua_riot_builtin_c_table_len; extern "C" } #endif -#endif /* LUA_BUILTIN_H */ /** @} */ diff --git a/pkg/lua/include/lua_loadlib.h b/pkg/lua/include/lua_loadlib.h index de66e75962ab..9f8bdf64c950 100644 --- a/pkg/lua/include/lua_loadlib.h +++ b/pkg/lua/include/lua_loadlib.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup pkg_lua * @{ @@ -15,9 +18,6 @@ * */ -#ifndef LUA_LOADLIB_H -#define LUA_LOADLIB_H - #ifdef __cplusplus extern "C" { #endif @@ -53,6 +53,5 @@ extern "C" } #endif -#endif /* LUA_LOADLIB_H */ /** @} */ diff --git a/pkg/lua/include/lua_run.h b/pkg/lua/include/lua_run.h index f898d6e9e88b..e3f86028da90 100644 --- a/pkg/lua/include/lua_run.h +++ b/pkg/lua/include/lua_run.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup pkg_lua * @file @@ -27,9 +30,6 @@ * */ -#ifndef LUA_RUN_H -#define LUA_RUN_H - #include #include "lua.h" @@ -219,5 +219,3 @@ extern "C" } #endif /** @} */ - -#endif /* LUA_RUN_H */ diff --git a/pkg/lv_drivers/include/lv_drv_conf.h b/pkg/lv_drivers/include/lv_drv_conf.h index 2d2d24501d25..5b67d99fb1a3 100644 --- a/pkg/lv_drivers/include/lv_drv_conf.h +++ b/pkg/lv_drivers/include/lv_drv_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lv_drivers * @brief LVGL Drivers SDL2 configuration headers @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef LV_DRV_CONF_H -#define LV_DRV_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -80,5 +79,4 @@ extern "C" { } #endif -#endif /* LV_DRV_CONF_H */ /** @} */ diff --git a/pkg/lvgl/include/lv_conf.h b/pkg/lvgl/include/lv_conf.h index 0eaf494033a2..d791531bff89 100644 --- a/pkg/lvgl/include/lv_conf.h +++ b/pkg/lvgl/include/lv_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lvgl * @brief LVGL configuration macros @@ -14,9 +16,6 @@ * @author Alexandre Abadie */ -#ifndef LV_CONF_H -#define LV_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -552,5 +551,4 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ } #endif -#endif /* LV_CONF_H */ /** @} */ diff --git a/pkg/lvgl/include/lvgl_riot.h b/pkg/lvgl/include/lvgl_riot.h index 93e69f873668..acbe74bdd9cf 100644 --- a/pkg/lvgl/include/lvgl_riot.h +++ b/pkg/lvgl/include/lvgl_riot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lvgl * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef LVGL_RIOT_H -#define LVGL_RIOT_H - #include "screen_dev.h" #ifdef __cplusplus @@ -56,5 +55,4 @@ void lvgl_wakeup(void); } #endif -#endif /* LVGL_RIOT_H */ /** @} */ diff --git a/pkg/lvgl/include/lvgl_riot_conf.h b/pkg/lvgl/include/lvgl_riot_conf.h index 1a7a56c40757..170df39171cd 100644 --- a/pkg/lvgl/include/lvgl_riot_conf.h +++ b/pkg/lvgl/include/lvgl_riot_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lvgl * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef LVGL_RIOT_CONF_H -#define LVGL_RIOT_CONF_H - #include "kernel_defines.h" #include "board.h" #if IS_USED(MODULE_LV_DRIVERS_SDL) @@ -62,5 +61,4 @@ typedef int16_t lv_coord_t; } #endif -#endif /* LVGL_RIOT_CONF_H */ /** @} */ diff --git a/pkg/lwip/include/arch/cc.h b/pkg/lwip/include/arch/cc.h index 950c0b85072a..b8710912242d 100644 --- a/pkg/lwip/include/arch/cc.h +++ b/pkg/lwip/include/arch/cc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup pkg_lwip_sys * @brief Describes compiler and processor to lwIP @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef ARCH_CC_H -#define ARCH_CC_H #include #include @@ -107,5 +107,4 @@ extern "C" { } #endif -#endif /* ARCH_CC_H */ /** @} */ diff --git a/pkg/lwip/include/arch/sys_arch.h b/pkg/lwip/include/arch/sys_arch.h index e7b220de38cc..81cc5ac76be6 100644 --- a/pkg/lwip/include/arch/sys_arch.h +++ b/pkg/lwip/include/arch/sys_arch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_lwip_sys Porting layer * @ingroup pkg_lwip @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef ARCH_SYS_ARCH_H -#define ARCH_SYS_ARCH_H #include #include @@ -140,5 +140,4 @@ void sys_unlock_tcpip_core(void); } #endif -#endif /* ARCH_SYS_ARCH_H */ /** @} */ diff --git a/pkg/lwip/include/lwip.h b/pkg/lwip/include/lwip.h index 8814b4a1c458..1fdeec37a5ff 100644 --- a/pkg/lwip/include/lwip.h +++ b/pkg/lwip/include/lwip.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lwip * @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef LWIP_H -#define LWIP_H #include "event.h" @@ -42,5 +42,4 @@ void lwip_bootstrap(void); } #endif -#endif /* LWIP_H */ /** @} */ diff --git a/pkg/lwip/include/lwip/netif/compat.h b/pkg/lwip/include/lwip/netif/compat.h index 8628295683ac..e152534b8bd4 100644 --- a/pkg/lwip/include/lwip/netif/compat.h +++ b/pkg/lwip/include/lwip/netif/compat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_lwip * @@ -17,8 +19,6 @@ * * @author Erik Ekman */ -#ifndef LWIP_NETIF_COMPAT_H -#define LWIP_NETIF_COMPAT_H #include "bhp/event.h" #include "event.h" @@ -82,5 +82,4 @@ static inline void lwip_netif_dev_release(struct netif *netif) } #endif -#endif /* LWIP_NETIF_COMPAT_H */ /** @} */ diff --git a/pkg/lwip/include/lwip/netif/netdev.h b/pkg/lwip/include/lwip/netif/netdev.h index 2163021a9f6a..c2ff29482e8d 100644 --- a/pkg/lwip/include/lwip/netif/netdev.h +++ b/pkg/lwip/include/lwip/netif/netdev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_lwip_netdev lwIP netdev adapter * @ingroup pkg_lwip @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef LWIP_NETIF_NETDEV_H -#define LWIP_NETIF_NETDEV_H #include "net/ethernet.h" #include "net/netdev.h" @@ -59,5 +59,4 @@ err_t lwip_netdev_init(struct netif *netif); } #endif -#endif /* LWIP_NETIF_NETDEV_H */ /** @} */ diff --git a/pkg/lwip/include/lwip/sock_internal.h b/pkg/lwip/include/lwip/sock_internal.h index ee1af480d16d..d0ed16ad2fa0 100644 --- a/pkg/lwip/include/lwip/sock_internal.h +++ b/pkg/lwip/include/lwip/sock_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_lwip_sock lwIP-specific implementation of sock API * @ingroup pkg_lwip @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef LWIP_SOCK_INTERNAL_H -#define LWIP_SOCK_INTERNAL_H #include #include @@ -77,6 +77,5 @@ static inline ssize_t lwip_sock_send(struct netconn *conn, } #endif -#endif /* LWIP_SOCK_INTERNAL_H */ /** @internal * @} */ diff --git a/pkg/lwip/include/lwip_init_devs.h b/pkg/lwip/include/lwip_init_devs.h index d0344f4fb46e..e03d9b30a411 100644 --- a/pkg/lwip/include/lwip_init_devs.h +++ b/pkg/lwip/include/lwip_init_devs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_auto_init_lwip_netif * @@ -17,9 +19,6 @@ * @author Erik Ekman */ -#ifndef LWIP_INIT_DEVS_H -#define LWIP_INIT_DEVS_H - #ifdef __cplusplus extern "C" { #endif @@ -73,5 +72,4 @@ typedef void (*lwip_netif_setup_func_t)(void); } #endif -#endif /* LWIP_INIT_DEVS_H */ /** @} */ diff --git a/pkg/lwip/include/lwipopts.h b/pkg/lwip/include/lwipopts.h index 1b179fb23b63..3039cd710770 100644 --- a/pkg/lwip/include/lwipopts.h +++ b/pkg/lwip/include/lwipopts.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_lwip_opts lwIP options * @ingroup pkg_lwip @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef LWIPOPTS_H -#define LWIPOPTS_H #include "thread.h" #include "net/gnrc/netif/hdr.h" @@ -186,5 +186,4 @@ bool sys_check_core_locked(void); } #endif -#endif /* LWIPOPTS_H */ /** @} */ diff --git a/pkg/lwip/include/sock_types.h b/pkg/lwip/include/sock_types.h index 33e4686cba53..02017d283a52 100644 --- a/pkg/lwip/include/sock_types.h +++ b/pkg/lwip/include/sock_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup pkg_lwip_sock * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef SOCK_TYPES_H -#define SOCK_TYPES_H #include "net/af.h" #include "lwip/api.h" @@ -133,5 +133,4 @@ struct sock_udp { } #endif -#endif /* SOCK_TYPES_H */ /** @} */ diff --git a/pkg/mbedtls/include/entropy_mbedtls_riot.h b/pkg/mbedtls/include/entropy_mbedtls_riot.h index 29dcb0f0da6d..ab30cc2ae09b 100644 --- a/pkg/mbedtls/include/entropy_mbedtls_riot.h +++ b/pkg/mbedtls/include/entropy_mbedtls_riot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_mbedtls_entropy Access API to Mbed TLS entropy module * @ingroup pkg_mbedtls @@ -19,9 +21,6 @@ * */ -#ifndef ENTROPY_MBEDTLS_RIOT_H -#define ENTROPY_MBEDTLS_RIOT_H - #ifdef __cplusplus extern "C" { #endif @@ -77,5 +76,3 @@ int entropy_mbedtls_riot_get(unsigned char *output, size_t len); } #endif /** @} */ - -#endif /* ENTROPY_MBEDTLS_RIOT_H */ diff --git a/pkg/mbedtls/include/entropy_sources_mbedtls_riot.h b/pkg/mbedtls/include/entropy_sources_mbedtls_riot.h index fa7791ef7b85..c8befac47656 100644 --- a/pkg/mbedtls/include/entropy_sources_mbedtls_riot.h +++ b/pkg/mbedtls/include/entropy_sources_mbedtls_riot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_mbedtls_entropy_sources Entropy source API to Mbed TLS * @ingroup pkg_mbedtls @@ -18,9 +20,6 @@ * */ -#ifndef ENTROPY_SOURCES_MBEDTLS_RIOT_H -#define ENTROPY_SOURCES_MBEDTLS_RIOT_H - #ifdef __cplusplus extern "C" { #endif @@ -89,5 +88,3 @@ int riot_adc_poll(void *data, unsigned char *output, size_t len, } #endif /** @} */ - -#endif /* ENTROPY_SOURCES_MBEDTLS_RIOT_H */ diff --git a/pkg/mbedtls/include/riot_mbedtls_config.h b/pkg/mbedtls/include/riot_mbedtls_config.h index 68879b3e9cc2..92c55ef1516e 100644 --- a/pkg/mbedtls/include/riot_mbedtls_config.h +++ b/pkg/mbedtls/include/riot_mbedtls_config.h @@ -28,8 +28,7 @@ * limitations under the License. */ -#ifndef RIOT_MBEDTLS_CONFIG_H -#define RIOT_MBEDTLS_CONFIG_H +#pragma once #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) #define _CRT_SECURE_NO_DEPRECATE 1 @@ -235,5 +234,4 @@ extern "C" { } #endif -#endif /* RIOT_MBEDTLS_CONFIG_H */ /** @} */ diff --git a/pkg/mbedtls/include/sha256_alt.h b/pkg/mbedtls/include/sha256_alt.h index cbb015dea2fc..2993ccd17002 100644 --- a/pkg/mbedtls/include/sha256_alt.h +++ b/pkg/mbedtls/include/sha256_alt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mbedtls * @@ -16,9 +18,6 @@ * */ -#ifndef SHA256_ALT_H -#define SHA256_ALT_H - #ifdef __cplusplus extern "C" { #endif @@ -44,4 +43,3 @@ typedef struct { } #endif /** @} */ -#endif /* SHA256_ALT_H */ diff --git a/pkg/mbedtls/include/threading_alt.h b/pkg/mbedtls/include/threading_alt.h index 3d442127a3be..07f82e969588 100644 --- a/pkg/mbedtls/include/threading_alt.h +++ b/pkg/mbedtls/include/threading_alt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mbedtls * @@ -16,9 +18,6 @@ * */ -#ifndef THREADING_ALT_H -#define THREADING_ALT_H - #ifdef __cplusplus extern "C" { #endif @@ -41,4 +40,3 @@ typedef struct { } #endif /** @} */ -#endif /* THREADING_ALT_H */ diff --git a/pkg/micropython/include/micropython.h b/pkg/micropython/include/micropython.h index 9c4839166cf4..8556289d1125 100644 --- a/pkg/micropython/include/micropython.h +++ b/pkg/micropython/include/micropython.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_micropython * @@ -19,9 +21,6 @@ * @author Kaspar Schleiser */ -#ifndef MICROPYTHON_H -#define MICROPYTHON_H - #include #ifdef __cplusplus @@ -55,5 +54,4 @@ void mp_riot_init(char* heap, size_t heap_size); */ void mp_do_str(const char *src, int len); -#endif /* MICROPYTHON_H */ /** @} */ diff --git a/pkg/mynewt-core/include/hal/hal_gpio.h b/pkg/mynewt-core/include/hal/hal_gpio.h index b09ba8beeaa0..cd4c256520d0 100644 --- a/pkg/mynewt-core/include/hal/hal_gpio.h +++ b/pkg/mynewt-core/include/hal/hal_gpio.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_dw1000 * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef HAL_HAL_GPIO_H -#define HAL_HAL_GPIO_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -193,5 +192,3 @@ static inline void hal_gpio_irq_disable(gpio_t pin) #ifdef __cplusplus } #endif - -#endif /* HAL_HAL_GPIO_H */ diff --git a/pkg/mynewt-core/include/hal/hal_spi.h b/pkg/mynewt-core/include/hal/hal_spi.h index da13747bb1a9..b9a79a499e20 100644 --- a/pkg/mynewt-core/include/hal/hal_spi.h +++ b/pkg/mynewt-core/include/hal/hal_spi.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_dw1000 * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef HAL_HAL_SPI_H -#define HAL_HAL_SPI_H - #include "periph/spi.h" #ifdef __cplusplus @@ -165,5 +164,3 @@ int hal_spi_txrx_noblock(int spi_num, void *txbuf, void *rxbuf, int cnt); #ifdef __cplusplus } #endif - -#endif /* HAL_HAL_SPI_H */ diff --git a/pkg/mynewt-core/include/log/log.h b/pkg/mynewt-core/include/log/log.h index 7ee5fe776e96..41479be36bc8 100644 --- a/pkg/mynewt-core/include/log/log.h +++ b/pkg/mynewt-core/include/log/log.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef LOG_LOG_H -#define LOG_LOG_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,3 @@ struct log { #ifdef __cplusplus } #endif - -#endif /* LOG_LOG_H */ diff --git a/pkg/mynewt-core/include/mcu/mcu.h b/pkg/mynewt-core/include/mcu/mcu.h index 2c3185a5c17d..4a2e255b27f6 100644 --- a/pkg/mynewt-core/include/mcu/mcu.h +++ b/pkg/mynewt-core/include/mcu/mcu.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef MCU_MCU_H -#define MCU_MCU_H - #include "cpu.h" #ifdef __cplusplus @@ -57,5 +56,3 @@ void nrf5x_hw_set_isr(int irqn, void (*addr)(void)); #ifdef __cplusplus } #endif - -#endif /* MCU_MCU_H */ diff --git a/pkg/mynewt-core/include/os/mynewt.h b/pkg/mynewt-core/include/os/mynewt.h index 97bf9c986dd7..66f2173efede 100644 --- a/pkg/mynewt-core/include/os/mynewt.h +++ b/pkg/mynewt-core/include/os/mynewt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef OS_MYNEWT_H -#define OS_MYNEWT_H - #include #include "syscfg/syscfg.h" #include "sysinit/sysinit.h" @@ -32,5 +31,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* OS_MYNEWT_H */ diff --git a/pkg/mynewt-core/include/os/os.h b/pkg/mynewt-core/include/os/os.h index 0de55584df3f..c05cc9164d19 100644 --- a/pkg/mynewt-core/include/os/os.h +++ b/pkg/mynewt-core/include/os/os.h @@ -26,6 +26,8 @@ * under the License. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -36,9 +38,6 @@ * @} */ -#ifndef OS_OS_H -#define OS_OS_H - #include #include @@ -142,5 +141,3 @@ static inline bool os_hw_is_in_critical(void) #ifdef __cplusplus } #endif - -#endif /* OS_OS_H */ diff --git a/pkg/mynewt-core/include/os/os_dev.h b/pkg/mynewt-core/include/os/os_dev.h index 6998d0887cc5..24bfe6d09b0c 100644 --- a/pkg/mynewt-core/include/os/os_dev.h +++ b/pkg/mynewt-core/include/os/os_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -16,8 +18,6 @@ * @author Francisco Molina * @} */ -#ifndef OS_OS_DEV_H -#define OS_OS_DEV_H #ifdef __cplusplus extern "C" { @@ -40,5 +40,3 @@ struct os_dev { #ifdef __cplusplus } #endif - -#endif /* OS_OS_DEV_H */ diff --git a/pkg/mynewt-core/include/os/os_eventq.h b/pkg/mynewt-core/include/os/os_eventq.h index 6a49d058f4de..9c0e63334ce6 100644 --- a/pkg/mynewt-core/include/os/os_eventq.h +++ b/pkg/mynewt-core/include/os/os_eventq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef OS_OS_EVENTQ_H -#define OS_OS_EVENTQ_H - #include #include "event/callback.h" @@ -232,5 +231,3 @@ static inline bool os_eventq_is_empty(struct os_eventq *evq) #ifdef __cplusplus } #endif - -#endif /* OS_OS_EVENTQ_H */ diff --git a/pkg/mynewt-core/include/os/os_time.h b/pkg/mynewt-core/include/os/os_time.h index 1ca7f50a598a..1ffb22c14542 100644 --- a/pkg/mynewt-core/include/os/os_time.h +++ b/pkg/mynewt-core/include/os/os_time.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef OS_OS_TIME_H -#define OS_OS_TIME_H - #include "os/os_error.h" #include "ztimer.h" @@ -112,5 +111,3 @@ static inline void os_time_delay(os_time_t ticks) #ifdef __cplusplus } #endif - -#endif /* OS_OS_TIME_H */ diff --git a/pkg/mynewt-core/include/os/os_types.h b/pkg/mynewt-core/include/os/os_types.h index 819f093e838f..a9c871724e81 100644 --- a/pkg/mynewt-core/include/os/os_types.h +++ b/pkg/mynewt-core/include/os/os_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef OS_OS_TYPES_H -#define OS_OS_TYPES_H - #include #ifdef __cplusplus @@ -55,5 +54,3 @@ typedef char os_stack_t; #ifdef __cplusplus } #endif - -#endif /* OS_OS_TYPES_H */ diff --git a/pkg/mynewt-core/include/syscfg/syscfg.h b/pkg/mynewt-core/include/syscfg/syscfg.h index c73c60f65017..be9046f2a605 100644 --- a/pkg/mynewt-core/include/syscfg/syscfg.h +++ b/pkg/mynewt-core/include/syscfg/syscfg.h @@ -26,6 +26,8 @@ * under the License. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -36,9 +38,6 @@ * @} */ -#ifndef SYSCFG_SYSCFG_H -#define SYSCFG_SYSCFG_H - #include "kernel_defines.h" /** @@ -127,5 +126,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* SYSCFG_SYSCFG_H */ diff --git a/pkg/mynewt-core/include/sysinit/sysinit.h b/pkg/mynewt-core/include/sysinit/sysinit.h index 7c65fd56f6ef..6daf0b0a2c4a 100644 --- a/pkg/mynewt-core/include/sysinit/sysinit.h +++ b/pkg/mynewt-core/include/sysinit/sysinit.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_mynewt_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef SYSINIT_SYSINIT_H -#define SYSINIT_SYSINIT_H - #include "assert.h" #ifdef __cplusplus @@ -39,5 +38,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* SYSINIT_SYSINIT_H */ diff --git a/pkg/nanocbor/include/nanocbor/config.h b/pkg/nanocbor/include/nanocbor/config.h index 5931775be35d..e902c93d9192 100644 --- a/pkg/nanocbor/include/nanocbor/config.h +++ b/pkg/nanocbor/include/nanocbor/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup nanocbor_config NanoCBOR configuration header * @ingroup pkg_nanocbor @@ -13,9 +15,6 @@ * @brief Provides compile-time configuration for nanocbor */ -#ifndef NANOCBOR_CONFIG_H -#define NANOCBOR_CONFIG_H - #include #ifdef __cplusplus @@ -79,5 +78,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* NANOCBOR_CONFIG_H */ diff --git a/pkg/nimble/addr/include/nimble_addr.h b/pkg/nimble/addr/include/nimble_addr.h index e29cbab9d28a..7b9dc532c5fa 100644 --- a/pkg/nimble/addr/include/nimble_addr.h +++ b/pkg/nimble/addr/include/nimble_addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_addr Address Helper * @ingroup pkg_nimble @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_ADDR_H -#define NIMBLE_ADDR_H - #include "nimble/ble.h" #ifdef __cplusplus @@ -54,5 +53,4 @@ void nimble_addr_sprint(char *buf, const ble_addr_t *addr); } #endif -#endif /* NIMBLE_ADDR_H */ /** @} */ diff --git a/pkg/nimble/autoadv/include/nimble_autoadv.h b/pkg/nimble/autoadv/include/nimble_autoadv.h index dd4d27928191..e9b40937aedc 100644 --- a/pkg/nimble/autoadv/include/nimble_autoadv.h +++ b/pkg/nimble/autoadv/include/nimble_autoadv.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_autoadv Automated advertising * @ingroup pkg_nimble @@ -25,9 +27,6 @@ * @author Hendrik van Essen */ -#ifndef NIMBLE_AUTOADV_H -#define NIMBLE_AUTOADV_H - #include "host/ble_gap.h" #ifdef __cplusplus @@ -191,4 +190,3 @@ int nimble_autoadv_get_adv_instance(void); } #endif /** @} */ -#endif /* NIMBLE_AUTOADV_H */ diff --git a/pkg/nimble/autoadv/include/nimble_autoadv_params.h b/pkg/nimble/autoadv/include/nimble_autoadv_params.h index de99ca6e7108..9b7308a1c559 100644 --- a/pkg/nimble/autoadv/include/nimble_autoadv_params.h +++ b/pkg/nimble/autoadv/include/nimble_autoadv_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_nimble_autoadv * @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef NIMBLE_AUTOADV_PARAMS_H -#define NIMBLE_AUTOADV_PARAMS_H - #include "nimble_autoadv.h" #include "nimble_riot.h" @@ -80,5 +79,4 @@ static const nimble_autoadv_cfg_t nimble_autoadv_cfg = } #endif -#endif /* NIMBLE_AUTOADV_PARAMS_H */ /** @} */ diff --git a/pkg/nimble/autoconn/include/nimble_autoconn.h b/pkg/nimble/autoconn/include/nimble_autoconn.h index d600b650e2d1..2b3638bafb86 100644 --- a/pkg/nimble/autoconn/include/nimble_autoconn.h +++ b/pkg/nimble/autoconn/include/nimble_autoconn.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_autoconn Autoconn * @ingroup pkg_nimble @@ -106,9 +108,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_AUTOCONN_H -#define NIMBLE_AUTOCONN_H - #include #include "nimble_netif.h" @@ -217,5 +216,4 @@ void nimble_autoconn_disable(void); } #endif -#endif /* NIMBLE_AUTOCONN_H */ /** @} */ diff --git a/pkg/nimble/autoconn/include/nimble_autoconn_params.h b/pkg/nimble/autoconn/include/nimble_autoconn_params.h index 121bb034911b..bcf9503cb0b7 100644 --- a/pkg/nimble/autoconn/include/nimble_autoconn_params.h +++ b/pkg/nimble/autoconn/include/nimble_autoconn_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_nimble_autoconn * @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_AUTOCONN_PARAMS_H -#define NIMBLE_AUTOCONN_PARAMS_H - #ifdef __cplusplus extern "C" { #endif @@ -103,5 +102,4 @@ static const nimble_autoconn_params_t nimble_autoconn_params = } #endif -#endif /* NIMBLE_AUTOCONN_PARAMS_H */ /** @} */ diff --git a/pkg/nimble/contrib/include/nimble_riot.h b/pkg/nimble/contrib/include/nimble_riot.h index 0dc39d3c514b..62960a9fa525 100644 --- a/pkg/nimble/contrib/include/nimble_riot.h +++ b/pkg/nimble/contrib/include/nimble_riot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_contrib RIOT Integration * @ingroup pkg_nimble @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_RIOT_H -#define NIMBLE_RIOT_H - #include #include #include "kernel_defines.h" @@ -120,5 +119,4 @@ int nimble_riot_get_phy_hci(uint8_t mode); } #endif -#endif /* NIMBLE_RIOT_H */ /** @} */ diff --git a/pkg/nimble/netif/include/nimble_netif.h b/pkg/nimble/netif/include/nimble_netif.h index e955d1a7c540..f04fa87ded80 100644 --- a/pkg/nimble/netif/include/nimble_netif.h +++ b/pkg/nimble/netif/include/nimble_netif.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_netif GNRC netif Implementation * @ingroup pkg_nimble @@ -63,9 +65,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_NETIF_H -#define NIMBLE_NETIF_H - #include #include @@ -336,5 +335,4 @@ int nimble_netif_used_chanmap(int handle, uint8_t map[5]); } #endif -#endif /* NIMBLE_NETIF_H */ /** @} */ diff --git a/pkg/nimble/netif/include/nimble_netif_conn.h b/pkg/nimble/netif/include/nimble_netif_conn.h index 01bf675799bb..59c2aea864a2 100644 --- a/pkg/nimble/netif/include/nimble_netif_conn.h +++ b/pkg/nimble/netif/include/nimble_netif_conn.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_netif_conn Connection State Management for netif * @ingroup pkg_nimble_netif @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_NETIF_CONN_H -#define NIMBLE_NETIF_CONN_H - #include #include @@ -287,5 +286,4 @@ static inline int nimble_netif_conn_is_adv(void) } #endif -#endif /* NIMBLE_NETIF_CONN_H */ /** @} */ diff --git a/pkg/nimble/npl/include/nimble/nimble_npl_os.h b/pkg/nimble/npl/include/nimble/nimble_npl_os.h index 9ee612444894..0c31fa572051 100644 --- a/pkg/nimble/npl/include/nimble/nimble_npl_os.h +++ b/pkg/nimble/npl/include/nimble/nimble_npl_os.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_nimble * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef NIMBLE_NIMBLE_NPL_OS_H -#define NIMBLE_NIMBLE_NPL_OS_H - #include #include #include "os/os.h" @@ -587,5 +586,3 @@ nrf52_clock_hfxo_release(void) #ifdef __cplusplus } #endif - -#endif /* NIMBLE_NIMBLE_NPL_OS_H */ diff --git a/pkg/nimble/rpble/include/nimble_rpble.h b/pkg/nimble/rpble/include/nimble_rpble.h index d09c292ad503..1cfd78a8d83a 100644 --- a/pkg/nimble/rpble/include/nimble_rpble.h +++ b/pkg/nimble/rpble/include/nimble_rpble.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_rpble RPL-over-BLE for NimBLE * @ingroup pkg_nimble @@ -82,9 +84,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_RPBLE_H -#define NIMBLE_RPBLE_H - #include "nimble_netif.h" #ifdef __cplusplus @@ -178,5 +177,4 @@ int nimble_rpble_update(const nimble_rpble_ctx_t *ctx); } #endif -#endif /* NIMBLE_RPBLE_H */ /** @} */ diff --git a/pkg/nimble/rpble/include/nimble_rpble_params.h b/pkg/nimble/rpble/include/nimble_rpble_params.h index 6e0351293903..3449c6f47bd7 100644 --- a/pkg/nimble/rpble/include/nimble_rpble_params.h +++ b/pkg/nimble/rpble/include/nimble_rpble_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_nimble_rpble * @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_RPBLE_PARAMS_H -#define NIMBLE_RPBLE_PARAMS_H - #include "nimble_rpble.h" #ifdef __cplusplus @@ -103,5 +102,4 @@ static const nimble_rpble_cfg_t nimble_rpble_params = NIMBLE_RPBLE_PARAMS; } #endif -#endif /* NIMBLE_RPBLE_PARAMS_H */ /** @} */ diff --git a/pkg/nimble/scanlist/include/nimble_scanlist.h b/pkg/nimble/scanlist/include/nimble_scanlist.h index bc80cd072d7f..e0c2025c9366 100644 --- a/pkg/nimble/scanlist/include/nimble_scanlist.h +++ b/pkg/nimble/scanlist/include/nimble_scanlist.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_scanlist Scan Result Helper * @ingroup pkg_nimble @@ -22,9 +24,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_SCANLIST_H -#define NIMBLE_SCANLIST_H - #include "clist.h" #include "net/ble.h" #include "nimble/ble.h" @@ -120,5 +119,4 @@ void nimble_scanlist_print_entry(nimble_scanlist_entry_t *e); } #endif -#endif /* NIMBLE_SCANLIST_H */ /** @} */ diff --git a/pkg/nimble/scanner/include/nimble_scanner.h b/pkg/nimble/scanner/include/nimble_scanner.h index a58d2e6754fc..ae073ac68eb9 100644 --- a/pkg/nimble/scanner/include/nimble_scanner.h +++ b/pkg/nimble/scanner/include/nimble_scanner.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_scanner Scanner Helper * @ingroup pkg_nimble @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_SCANNER_H -#define NIMBLE_SCANNER_H - #include #include #include @@ -170,5 +169,4 @@ void nimble_scanner_set_scan_duration(int32_t duration_ms); } #endif -#endif /* NIMBLE_SCANNER_H */ /** @} */ diff --git a/pkg/nimble/statconn/include/nimble_statconn.h b/pkg/nimble/statconn/include/nimble_statconn.h index 63ef2c32810e..c94aa87fa1bd 100644 --- a/pkg/nimble/statconn/include/nimble_statconn.h +++ b/pkg/nimble/statconn/include/nimble_statconn.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_nimble_statconn Statconn * @ingroup pkg_nimble @@ -47,9 +49,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_STATCONN_H -#define NIMBLE_STATCONN_H - #include #include @@ -193,5 +192,4 @@ int nimble_statconn_rm(const uint8_t *addr); } #endif -#endif /* NIMBLE_STATCONN_H */ /** @} */ diff --git a/pkg/nrfx/include/nrfx_config.h b/pkg/nrfx/include/nrfx_config.h index e78a506cc821..7786fed88ef7 100644 --- a/pkg/nrfx/include/nrfx_config.h +++ b/pkg/nrfx/include/nrfx_config.h @@ -31,6 +31,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#pragma once + /** * @ingroup pkg_nrfx * @{ @@ -41,9 +43,6 @@ * @author Hauke Petersen */ -#ifndef NRFX_CONFIG_H -#define NRFX_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -55,5 +54,4 @@ extern "C" { } #endif -#endif /* NRFX_CONFIG_H */ /** @} **/ diff --git a/pkg/nrfx/include/nrfx_glue.h b/pkg/nrfx/include/nrfx_glue.h index 824f95c7968c..e77c314aa926 100644 --- a/pkg/nrfx/include/nrfx_glue.h +++ b/pkg/nrfx/include/nrfx_glue.h @@ -31,6 +31,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#pragma once + /** * @ingroup pkg_nrfx * @{ @@ -43,9 +45,6 @@ * @author Nordic Semiconductor ASA */ -#ifndef NRFX_GLUE_H -#define NRFX_GLUE_H - #ifdef __cplusplus extern "C" { #endif @@ -281,5 +280,4 @@ extern "C" { } #endif -#endif /* NRFX_GLUE_H */ /** @} */ diff --git a/pkg/opendsme/include/opendsme/DSMEMessage.h b/pkg/opendsme/include/opendsme/DSMEMessage.h index 0b202a025496..3cd2dd772a64 100644 --- a/pkg/opendsme/include/opendsme/DSMEMessage.h +++ b/pkg/opendsme/include/opendsme/DSMEMessage.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_opendsme_dsmemessage DSME Message interface implementation. * @ingroup pkg_opendsme @@ -19,9 +21,6 @@ * @author José I. Álamos */ -#ifndef OPENDSME_DSMEMESSAGE_H -#define OPENDSME_DSMEMESSAGE_H - #include #include @@ -336,5 +335,4 @@ friend class DSMEMessageBuffer; } #endif -#endif /* OPENDSME_DSMEMESSAGE_H */ /** @} */ diff --git a/pkg/opendsme/include/opendsme/DSMEPlatform.h b/pkg/opendsme/include/opendsme/DSMEPlatform.h index fad23b2aca39..2c5c9bce7d21 100644 --- a/pkg/opendsme/include/opendsme/DSMEPlatform.h +++ b/pkg/opendsme/include/opendsme/DSMEPlatform.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_opendsme_dsmeplatform DSME Platform interface implementation. * @ingroup pkg_opendsme @@ -19,9 +21,6 @@ * @author José I. Álamos */ -#ifndef OPENDSME_DSMEPLATFORM_H -#define OPENDSME_DSMEPLATFORM_H - #include #include @@ -542,5 +541,4 @@ class DSMEPlatform : public IDSMEPlatform { } #endif -#endif /* OPENDSME_DSMEPLATFORM_H */ /** @} */ diff --git a/pkg/opendsme/include/opendsme/dsme_atomic.h b/pkg/opendsme/include/opendsme/dsme_atomic.h index 88578188d007..1312f489c27e 100644 --- a/pkg/opendsme/include/opendsme/dsme_atomic.h +++ b/pkg/opendsme/include/opendsme/dsme_atomic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_opendsme * @@ -16,9 +18,6 @@ * @author José I. Álamos */ -#ifndef OPENDSME_DSME_ATOMIC_H -#define OPENDSME_DSME_ATOMIC_H - #ifdef __cplusplus extern "C" { #endif @@ -37,7 +36,6 @@ extern "C" { */ #define dsme_atomicEnd() -#endif /* OPENDSME_DSME_ATOMIC_H */ #ifdef __cplusplus } diff --git a/pkg/opendsme/include/opendsme/dsme_platform.h b/pkg/opendsme/include/opendsme/dsme_platform.h index 32fde2b99793..7246aa371044 100644 --- a/pkg/opendsme/include/opendsme/dsme_platform.h +++ b/pkg/opendsme/include/opendsme/dsme_platform.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_opendsme * @@ -16,9 +18,6 @@ * @author José I. Álamos */ -#ifndef OPENDSME_DSME_PLATFORM_H -#define OPENDSME_DSME_PLATFORM_H - #include #include @@ -48,5 +47,4 @@ extern "C" { } #endif -#endif /* OPENDSME_DSME_PLATFORM_H */ /** @} */ diff --git a/pkg/opendsme/include/opendsme/dsme_settings.h b/pkg/opendsme/include/opendsme/dsme_settings.h index 335ffba74f74..b3f6d49e0815 100644 --- a/pkg/opendsme/include/opendsme/dsme_settings.h +++ b/pkg/opendsme/include/opendsme/dsme_settings.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_opendsme * @@ -15,8 +17,6 @@ * * @author José I. Álamos */ -#ifndef OPENDSME_DSME_SETTINGS_H -#define OPENDSME_DSME_SETTINGS_H #include @@ -162,5 +162,4 @@ constexpr uint8_t ADDITIONAL_ACK_WAIT_DURATION = 63; } #endif -#endif /* OPENDSME_DSME_SETTINGS_H */ /** @} */ diff --git a/pkg/opendsme/include/opendsme/opendsme.h b/pkg/opendsme/include/opendsme/opendsme.h index f63930fa004b..f6419a6e4884 100644 --- a/pkg/opendsme/include/opendsme/opendsme.h +++ b/pkg/opendsme/include/opendsme/opendsme.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_opendsme openDSME - IEEE 802.15.4 DSME * @ingroup pkg @@ -184,8 +186,6 @@ * ## MAC configuration * */ -#ifndef OPENDSME_OPENDSME_H -#define OPENDSME_OPENDSME_H #include #include "byteorder.h" @@ -279,6 +279,5 @@ int gnrc_netif_opendsme_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* OPENDSME_OPENDSME_H */ /** @} */ diff --git a/pkg/openthread/include/ot.h b/pkg/openthread/include/ot.h index 53db7bd06329..e77bdbe08b23 100644 --- a/pkg/openthread/include/ot.h +++ b/pkg/openthread/include/ot.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_openthread_cli OpenThread * @ingroup pkg_openthread @@ -50,9 +52,6 @@ * @author Baptiste Clenet */ -#ifndef OT_H -#define OT_H - #ifdef __cplusplus extern "C" { #endif @@ -168,5 +167,4 @@ void ot_random_init(void); } #endif -#endif /* OT_H */ /** @} */ diff --git a/pkg/openthread/include/platform_config.h b/pkg/openthread/include/platform_config.h index c1e1b81d118c..472497df1e5f 100644 --- a/pkg/openthread/include/platform_config.h +++ b/pkg/openthread/include/platform_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @ingroup net @@ -16,9 +18,6 @@ * @} */ -#ifndef PLATFORM_CONFIG_H -#define PLATFORM_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -46,5 +45,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* PLATFORM_CONFIG_H */ diff --git a/pkg/openwsn/include/board_info.h b/pkg/openwsn/include/board_info.h index 805ff3954947..03f9a42d8313 100644 --- a/pkg/openwsn/include/board_info.h +++ b/pkg/openwsn/include/board_info.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -21,9 +23,6 @@ * @} */ -#ifndef BOARD_INFO_H -#define BOARD_INFO_H - #include #include @@ -144,5 +143,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* BOARD_INFO_H */ diff --git a/pkg/openwsn/include/openwsn.h b/pkg/openwsn/include/openwsn.h index 0970af95d5c3..e3b6f83f271c 100644 --- a/pkg/openwsn/include/openwsn.h +++ b/pkg/openwsn/include/openwsn.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @@ -17,8 +19,6 @@ * @author Peter Kietzmann * @author Francisco Molina */ -#ifndef OPENWSN_H -#define OPENWSN_H #ifdef __cplusplus extern "C" { @@ -61,5 +61,4 @@ kernel_pid_t openwsn_get_pid(void); } #endif -#endif /* OPENWSN_H */ /** @} */ diff --git a/pkg/openwsn/include/openwsn_board.h b/pkg/openwsn/include/openwsn_board.h index 5814662dc7a4..6c025f75ef90 100644 --- a/pkg/openwsn/include/openwsn_board.h +++ b/pkg/openwsn/include/openwsn_board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -24,9 +26,6 @@ * @} */ -#ifndef OPENWSN_BOARD_H -#define OPENWSN_BOARD_H - #include "board_info.h" #ifdef __cplusplus @@ -67,5 +66,3 @@ void board_sleep(void); #ifdef __cplusplus } #endif - -#endif /* OPENWSN_BOARD_H */ diff --git a/pkg/openwsn/include/openwsn_debugpins.h b/pkg/openwsn/include/openwsn_debugpins.h index 32832a7d1772..0d6d85841882 100644 --- a/pkg/openwsn/include/openwsn_debugpins.h +++ b/pkg/openwsn/include/openwsn_debugpins.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -20,9 +22,6 @@ * @} */ -#ifndef OPENWSN_DEBUGPINS_H -#define OPENWSN_DEBUGPINS_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -52,5 +51,3 @@ void openwsn_debugpins_init(const debugpins_config_t *user_config); #ifdef __cplusplus } #endif - -#endif /* OPENWSN_DEBUGPINS_H */ diff --git a/pkg/openwsn/include/openwsn_debugpins_params.h b/pkg/openwsn/include/openwsn_debugpins_params.h index e3df46238e0b..ae4fe05c10b3 100644 --- a/pkg/openwsn/include/openwsn_debugpins_params.h +++ b/pkg/openwsn/include/openwsn_debugpins_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef OPENWSN_DEBUGPINS_PARAMS_H -#define OPENWSN_DEBUGPINS_PARAMS_H - #include "board.h" #include "openwsn_debugpins.h" @@ -77,5 +76,3 @@ static const debugpins_config_t openwsn_debugpins_params[] = #ifdef __cplusplus } #endif - -#endif /* OPENWSN_DEBUGPINS_PARAMS_H */ diff --git a/pkg/openwsn/include/openwsn_leds.h b/pkg/openwsn/include/openwsn_leds.h index 17774ede2784..46abeb27c85a 100644 --- a/pkg/openwsn/include/openwsn_leds.h +++ b/pkg/openwsn/include/openwsn_leds.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -20,8 +22,6 @@ * * @} */ -#ifndef OPENWSN_LEDS_H -#define OPENWSN_LEDS_H #include "periph/gpio.h" @@ -62,5 +62,3 @@ void ledpins_riot_init(const leds_config_t *user_config); #ifdef __cplusplus } #endif - -#endif /* OPENWSN_LEDS_H */ diff --git a/pkg/openwsn/include/openwsn_leds_params.h b/pkg/openwsn/include/openwsn_leds_params.h index c4f81dfed5c2..4b37c42af5ae 100644 --- a/pkg/openwsn/include/openwsn_leds_params.h +++ b/pkg/openwsn/include/openwsn_leds_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -17,8 +19,6 @@ * * @} */ -#ifndef OPENWSN_LEDS_PARAMS_H -#define OPENWSN_LEDS_PARAMS_H #include "board.h" @@ -92,5 +92,3 @@ static const leds_config_t openwsn_leds_params[] = #ifdef __cplusplus } #endif - -#endif /* OPENWSN_LEDS_PARAMS_H */ diff --git a/pkg/openwsn/include/openwsn_log.h b/pkg/openwsn/include/openwsn_log.h index ef73c348c46d..1618857a2db1 100644 --- a/pkg/openwsn/include/openwsn_log.h +++ b/pkg/openwsn/include/openwsn_log.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -19,9 +21,6 @@ * @author Kaspar Schleiser */ -#ifndef OPENWSN_LOG_H -#define OPENWSN_LOG_H - #include #ifdef __cplusplus @@ -95,5 +94,4 @@ enum { } #endif -#endif /* OPENWSN_LOG_H */ /** @} */ diff --git a/pkg/openwsn/include/openwsn_radio.h b/pkg/openwsn/include/openwsn_radio.h index 3f8019367594..6c85471d54dc 100644 --- a/pkg/openwsn/include/openwsn_radio.h +++ b/pkg/openwsn/include/openwsn_radio.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -45,9 +47,6 @@ * @author Francisco Molina */ -#ifndef OPENWSN_RADIO_H -#define OPENWSN_RADIO_H - #ifdef __cplusplus extern "C" { #endif @@ -83,5 +82,4 @@ typedef struct { } #endif -#endif /* OPENWSN_RADIO_H */ /** @} */ diff --git a/pkg/openwsn/include/openwsn_uart.h b/pkg/openwsn/include/openwsn_uart.h index a41c65c16df3..468b3a6503ac 100644 --- a/pkg/openwsn/include/openwsn_uart.h +++ b/pkg/openwsn/include/openwsn_uart.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -23,9 +25,6 @@ * @} */ -#ifndef OPENWSN_UART_H -#define OPENWSN_UART_H - #include "stdint.h" #include "board.h" #include "periph_conf.h" @@ -138,5 +137,3 @@ void uart_clearTxInterrupts(void); #ifdef __cplusplus } #endif - -#endif /* OPENWSN_UART_H */ diff --git a/pkg/openwsn/scheduler/scheduler_types.h b/pkg/openwsn/scheduler/scheduler_types.h index 0dbfa7267de5..4ec35d13a2ac 100644 --- a/pkg/openwsn/scheduler/scheduler_types.h +++ b/pkg/openwsn/scheduler/scheduler_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef SCHEDULER_TYPES_H -#define SCHEDULER_TYPES_H - #include "opendefs.h" #include "scheduler.h" #include "event/callback.h" @@ -52,5 +51,3 @@ typedef struct { #ifdef __cplusplus } #endif - -#endif /* SCHEDULER_TYPES_H */ diff --git a/pkg/openwsn/sock/sock_types.h b/pkg/openwsn/sock/sock_types.h index 776a159d0320..b167abcf98be 100644 --- a/pkg/openwsn/sock/sock_types.h +++ b/pkg/openwsn/sock/sock_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_openwsn_sock OpenWSN-specific implementation of the sock API * @ingroup pkg_openwsn @@ -20,9 +22,6 @@ * @author Francisco Molina */ -#ifndef SOCK_TYPES_H -#define SOCK_TYPES_H - #include "mbox.h" #include "net/af.h" #ifdef SOCK_HAS_ASYNC @@ -94,5 +93,4 @@ struct sock_udp { } #endif -#endif /* SOCK_TYPES_H */ /** @} */ diff --git a/pkg/paho-mqtt/include/paho_mqtt.h b/pkg/paho-mqtt/include/paho_mqtt.h index 07e2e0010f2a..656d52368e3a 100644 --- a/pkg/paho-mqtt/include/paho_mqtt.h +++ b/pkg/paho-mqtt/include/paho_mqtt.h @@ -7,6 +7,8 @@ * */ +#pragma once + /** * @addtogroup pkg_paho_mqtt * @{ @@ -16,8 +18,6 @@ * * @author Javier FILEIV */ -#ifndef PAHO_MQTT_H -#define PAHO_MQTT_H #include "mutex.h" #include "thread.h" @@ -193,5 +193,4 @@ int ThreadStart(Thread *thread, void (*fn)(void *), void *arg); } #endif -#endif /* PAHO_MQTT_H */ /** @} */ diff --git a/pkg/semtech-loramac/include/semtech-loramac/timer.h b/pkg/semtech-loramac/include/semtech-loramac/timer.h index 54e01a438060..4a808b595c32 100644 --- a/pkg/semtech-loramac/include/semtech-loramac/timer.h +++ b/pkg/semtech-loramac/include/semtech-loramac/timer.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_semtech-loramac * @brief Semtech LoRaMAC timer compatibility definitions @@ -19,9 +21,6 @@ * @author Francisco Molina */ -#ifndef SEMTECH_LORAMAC_TIMER_H -#define SEMTECH_LORAMAC_TIMER_H - #ifdef __cplusplus extern "C" { #endif @@ -126,5 +125,4 @@ void TimerLowPowerHandler(void); } #endif -#endif /* SEMTECH_LORAMAC_TIMER_H */ /** @} */ diff --git a/pkg/semtech-loramac/include/semtech_loramac.h b/pkg/semtech-loramac/include/semtech_loramac.h index 656454f55e3c..72340e5f22e3 100644 --- a/pkg/semtech-loramac/include/semtech_loramac.h +++ b/pkg/semtech-loramac/include/semtech_loramac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_semtech-loramac * @brief Public API and definitions of the Semtech LoRaMAC @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef SEMTECH_LORAMAC_H -#define SEMTECH_LORAMAC_H - #ifdef __cplusplus extern "C" { #endif @@ -567,5 +566,4 @@ void semtech_loramac_erase_config(void); } #endif -#endif /* SEMTECH_LORAMAC_H */ /** @} */ diff --git a/pkg/spiffs/include/spiffs_config.h b/pkg/spiffs/include/spiffs_config.h index c9a86109f9a3..1da209bd5739 100644 --- a/pkg/spiffs/include/spiffs_config.h +++ b/pkg/spiffs/include/spiffs_config.h @@ -21,6 +21,8 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma once + /* * spiffs_config.h * @@ -28,9 +30,6 @@ * Author: petera */ -#ifndef SPIFFS_CONFIG_H -#define SPIFFS_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -349,5 +348,3 @@ typedef int16_t s16_t; #ifdef __cplusplus } #endif - -#endif /* SPIFFS_CONFIG_H */ diff --git a/pkg/tinydtls/include/sock_dtls_types.h b/pkg/tinydtls/include/sock_dtls_types.h index e800bab72f2a..4280aaf0278f 100644 --- a/pkg/tinydtls/include/sock_dtls_types.h +++ b/pkg/tinydtls/include/sock_dtls_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef SOCK_DTLS_TYPES_H -#define SOCK_DTLS_TYPES_H - #include "dtls.h" #include "net/sock/udp.h" #include "net/credman.h" @@ -94,5 +93,4 @@ struct sock_dtls_session { } #endif -#endif /* SOCK_DTLS_TYPES_H */ /** @} */ diff --git a/pkg/tinyusb/contrib/include/tinyusb.h b/pkg/tinyusb/contrib/include/tinyusb.h index 34679c696eea..ad1b2381a51a 100644 --- a/pkg/tinyusb/contrib/include/tinyusb.h +++ b/pkg/tinyusb/contrib/include/tinyusb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_H -#define TINYUSB_H - #include "periph_conf.h" #include "tinyusb_hw_defaults.h" @@ -63,5 +62,4 @@ int tinyusb_setup(void); } #endif -#endif /* TINYUSB_H */ /** @} */ diff --git a/pkg/tinyusb/contrib/include/tinyusb_descriptors.h b/pkg/tinyusb/contrib/include/tinyusb_descriptors.h index 92b909a83aa9..d5e5e7c2221c 100644 --- a/pkg/tinyusb/contrib/include/tinyusb_descriptors.h +++ b/pkg/tinyusb/contrib/include/tinyusb_descriptors.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_DESCRIPTORS_H -#define TINYUSB_DESCRIPTORS_H - #include "tusb_config.h" /* defined by the application */ #include "tinyusb.h" @@ -205,5 +204,4 @@ enum { #endif #endif /* !DOXYGEN */ -#endif /* TINYUSB_DESCRIPTORS_H */ /** @} */ diff --git a/pkg/tinyusb/contrib/include/tusb_config.h b/pkg/tinyusb/contrib/include/tusb_config.h index 14b2660e6569..c348591195fa 100644 --- a/pkg/tinyusb/contrib/include/tusb_config.h +++ b/pkg/tinyusb/contrib/include/tusb_config.h @@ -21,6 +21,8 @@ * THE SOFTWARE. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -31,9 +33,6 @@ * @author Gunar Schorcht */ -#ifndef TUSB_CONFIG_H -#define TUSB_CONFIG_H - /* defined by the application */ #if __has_include("tinyusb_app_config.h") #include "tinyusb_app_config.h" @@ -464,5 +463,4 @@ extern "C" { #endif #endif /* !DOXYGEN */ -#endif /* TUSB_CONFIG_H */ /** @} */ diff --git a/pkg/tinyusb/contrib/include/tusb_os_custom.h b/pkg/tinyusb/contrib/include/tusb_os_custom.h index 901dcac784dd..c79dbddf4457 100644 --- a/pkg/tinyusb/contrib/include/tusb_os_custom.h +++ b/pkg/tinyusb/contrib/include/tusb_os_custom.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef TUSB_OS_CUSTOM_H -#define TUSB_OS_CUSTOM_H - #include "mutex.h" #include "sema.h" #include "ztimer.h" @@ -252,5 +251,4 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_empty(osal_queue_t qhdl) #endif #endif /* !DOXYGEN */ -#endif /* TUSB_OS_CUSTOM_H */ /** @} */ diff --git a/pkg/tinyusb/dfu/include/tinyusb_dfu.h b/pkg/tinyusb/dfu/include/tinyusb_dfu.h index e03a2bd76b75..6231eab9f4a8 100644 --- a/pkg/tinyusb/dfu/include/tinyusb_dfu.h +++ b/pkg/tinyusb/dfu/include/tinyusb_dfu.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb_dfu * @{ @@ -15,9 +17,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_DFU_H -#define TINYUSB_DFU_H - #include "riotboot/flashwrite.h" #ifdef __cplusplus @@ -44,5 +43,4 @@ void tinyusb_dfu_init(void); } #endif -#endif /* TINYUSB_DFU_H */ /** @} */ diff --git a/pkg/tinyusb/hw/include/nrf52/nrf_clock.h b/pkg/tinyusb/hw/include/nrf52/nrf_clock.h index cf76aa3b0bc6..e0d0c84fee68 100644 --- a/pkg/tinyusb/hw/include/nrf52/nrf_clock.h +++ b/pkg/tinyusb/hw/include/nrf52/nrf_clock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb * @brief @@ -20,9 +22,6 @@ * @author Gunar Schorcht */ -#ifndef NRF52_NRF_CLOCK_H -#define NRF52_NRF_CLOCK_H - #include #include "nrf.h" @@ -105,5 +104,4 @@ static inline void nrf_clock_task_trigger(NRF_CLOCK_Type *reg, #endif #endif /* !DOXYGEN */ -#endif /* NRF52_NRF_CLOCK_H */ /** @} */ diff --git a/pkg/tinyusb/hw/include/tinyusb_hw.h b/pkg/tinyusb/hw/include/tinyusb_hw.h index 40c4654afd8d..7a0e7699ee88 100644 --- a/pkg/tinyusb/hw/include/tinyusb_hw.h +++ b/pkg/tinyusb/hw/include/tinyusb_hw.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_HW_H -#define TINYUSB_HW_H - #ifdef __cplusplus extern "C" { #endif @@ -37,5 +36,4 @@ int tinyusb_hw_init(void); } #endif -#endif /* TINYUSB_HW_H */ /** @} */ diff --git a/pkg/tinyusb/hw/include/tinyusb_hw_defaults.h b/pkg/tinyusb/hw/include/tinyusb_hw_defaults.h index 99f0dcd8f0fa..b68e5ad852f9 100644 --- a/pkg/tinyusb/hw/include/tinyusb_hw_defaults.h +++ b/pkg/tinyusb/hw/include/tinyusb_hw_defaults.h @@ -20,6 +20,8 @@ * THE SOFTWARE. */ +#pragma once + /** * @ingroup pkg_tinyusb * @{ @@ -36,9 +38,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_HW_DEFAULTS_H -#define TINYUSB_HW_DEFAULTS_H - #ifdef __cplusplus extern "C" { #endif @@ -47,5 +46,4 @@ extern "C" { } #endif -#endif /* TINYUSB_HW_DEFAULTS_H */ /** @} */ diff --git a/pkg/tinyusb/netdev/include/tinyusb_netdev.h b/pkg/tinyusb/netdev/include/tinyusb_netdev.h index c26e0cf149d4..c8edc736d6ba 100644 --- a/pkg/tinyusb/netdev/include/tinyusb_netdev.h +++ b/pkg/tinyusb/netdev/include/tinyusb_netdev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pkg_tinyusb_netdev TinyUSB netdev driver * @ingroup pkg_tinyusb @@ -56,9 +58,6 @@ * @author Gunar Schorcht */ -#ifndef TINYUSB_NETDEV_H -#define TINYUSB_NETDEV_H - #include "net/ethernet.h" #include "net/netdev.h" #include "mutex.h" @@ -88,5 +87,4 @@ typedef struct { } #endif -#endif /* TINYUSB_NETDEV_H */ /** @} */ diff --git a/pkg/tinyvcdiff/include/vcdiff_mtd.h b/pkg/tinyvcdiff/include/vcdiff_mtd.h index c55026480345..f9b6b46c746d 100644 --- a/pkg/tinyvcdiff/include/vcdiff_mtd.h +++ b/pkg/tinyvcdiff/include/vcdiff_mtd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -15,9 +17,6 @@ * @author Juergen Fitschen */ -#ifndef VCDIFF_MTD_H -#define VCDIFF_MTD_H - #include "vcdiff.h" #include "mtd.h" @@ -71,5 +70,4 @@ typedef struct { } #endif -#endif /* VCDIFF_MTD_H */ /** @} */ diff --git a/pkg/tinyvcdiff/include/vcdiff_vfs.h b/pkg/tinyvcdiff/include/vcdiff_vfs.h index a7bdeee7ef1c..c956af1d6bed 100644 --- a/pkg/tinyvcdiff/include/vcdiff_vfs.h +++ b/pkg/tinyvcdiff/include/vcdiff_vfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -15,9 +17,6 @@ * @author Juergen Fitschen */ -#ifndef VCDIFF_VFS_H -#define VCDIFF_VFS_H - #include "vcdiff.h" #include "vfs.h" @@ -52,5 +51,4 @@ typedef struct { } #endif -#endif /* VCDIFF_VFS_H */ /** @} */ diff --git a/pkg/tlsf/contrib/include/tlsf-malloc.h b/pkg/tlsf/contrib/include/tlsf-malloc.h index e6fd4fd5ad10..666368c4304b 100644 --- a/pkg/tlsf/contrib/include/tlsf-malloc.h +++ b/pkg/tlsf/contrib/include/tlsf-malloc.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup pkg_tlsf_malloc TLSF-based malloc. * @ingroup pkg @@ -33,9 +36,6 @@ * */ -#ifndef TLSF_MALLOC_H -#define TLSF_MALLOC_H - #include #include "tlsf.h" @@ -93,7 +93,6 @@ tlsf_t _tlsf_get_global_control(void); } #endif -#endif /* TLSF_MALLOC_H */ /** * @} diff --git a/pkg/tlsf/contrib/tlsf-malloc-internal.h b/pkg/tlsf/contrib/tlsf-malloc-internal.h index dd587132725a..245b9e7b3837 100644 --- a/pkg/tlsf/contrib/tlsf-malloc-internal.h +++ b/pkg/tlsf/contrib/tlsf-malloc-internal.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup pkg_tlsf_malloc * @{ @@ -16,9 +19,6 @@ * */ -#ifndef TLSF_MALLOC_INTERNAL_H -#define TLSF_MALLOC_INTERNAL_H - #include "tlsf.h" #ifdef __cplusplus @@ -31,5 +31,4 @@ extern tlsf_t tlsf_malloc_gheap; } #endif -#endif /* TLSF_MALLOC_INTERNAL_H */ /** @} */ diff --git a/pkg/u8g2/contrib/u8x8_riotos.h b/pkg/u8g2/contrib/u8x8_riotos.h index 1b0a7f5a0b78..16748d454b55 100644 --- a/pkg/u8g2/contrib/u8x8_riotos.h +++ b/pkg/u8g2/contrib/u8x8_riotos.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_u8g2 * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef U8X8_RIOTOS_H -#define U8X8_RIOTOS_H - #include "u8x8.h" #include "periph/gpio.h" @@ -66,5 +65,3 @@ uint8_t u8x8_byte_hw_i2c_riotos(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void #ifdef __cplusplus } #endif - -#endif /* U8X8_RIOTOS_H */ diff --git a/pkg/ucglib/contrib/ucg_riotos.h b/pkg/ucglib/contrib/ucg_riotos.h index 9e6c87069b1b..49d5a9ce904d 100644 --- a/pkg/ucglib/contrib/ucg_riotos.h +++ b/pkg/ucglib/contrib/ucg_riotos.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_ucglib * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef UCG_RIOTOS_H -#define UCG_RIOTOS_H - #include "ucg.h" #include "periph/gpio.h" @@ -61,5 +60,3 @@ ucg_int_t ucg_dev_dummy_riotos(ucg_t *ucg, ucg_int_t msg, void *data); #ifdef __cplusplus } #endif - -#endif /* UCG_RIOTOS_H */ diff --git a/pkg/uwb-core/include/dpl/dpl.h b/pkg/uwb-core/include/dpl/dpl.h index 309ea1343b20..1bb10ca8d713 100644 --- a/pkg/uwb-core/include/dpl/dpl.h +++ b/pkg/uwb-core/include/dpl/dpl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_H -#define DPL_DPL_H - #include "syscfg/syscfg.h" #include "dpl/dpl_types.h" #include "dpl/dpl_error.h" @@ -35,5 +34,3 @@ #ifdef __cplusplus extern "C" { #endif - -#endif /* DPL_DPL_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_callout.h b/pkg/uwb-core/include/dpl/dpl_callout.h index b52423834762..d544701abafc 100644 --- a/pkg/uwb-core/include/dpl/dpl_callout.h +++ b/pkg/uwb-core/include/dpl/dpl_callout.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -20,9 +22,6 @@ * @} */ -#ifndef DPL_DPL_CALLOUT_H -#define DPL_DPL_CALLOUT_H - #include "os/os_callout.h" #ifdef __cplusplus @@ -82,5 +81,3 @@ static inline void dpl_callout_stop(struct dpl_callout *c) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_CALLOUT_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_cputime.h b/pkg/uwb-core/include/dpl/dpl_cputime.h index e299fbd42941..ee171bb88616 100644 --- a/pkg/uwb-core/include/dpl/dpl_cputime.h +++ b/pkg/uwb-core/include/dpl/dpl_cputime.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_CPUTIME_H -#define DPL_DPL_CPUTIME_H - #ifdef __cplusplus extern "C" { #endif @@ -145,5 +144,3 @@ static inline void dpl_cputime_timer_stop(struct hal_timer *timer) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_CPUTIME_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_error.h b/pkg/uwb-core/include/dpl/dpl_error.h index 24c46e60ea67..157b0c37a7b5 100644 --- a/pkg/uwb-core/include/dpl/dpl_error.h +++ b/pkg/uwb-core/include/dpl/dpl_error.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_ERROR_H -#define DPL_DPL_ERROR_H - #ifdef __cplusplus extern "C" { #endif @@ -53,5 +52,3 @@ typedef os_error_t dpl_error_t; #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_ERROR_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_eventq.h b/pkg/uwb-core/include/dpl/dpl_eventq.h index 1a3475c0cec2..cdc62b694d67 100644 --- a/pkg/uwb-core/include/dpl/dpl_eventq.h +++ b/pkg/uwb-core/include/dpl/dpl_eventq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_EVENTQ_H -#define DPL_DPL_EVENTQ_H - #include #include "os/os_eventq.h" @@ -219,5 +218,3 @@ static inline struct dpl_eventq * dpl_eventq_dflt_get(void) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_EVENTQ_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_mutex.h b/pkg/uwb-core/include/dpl/dpl_mutex.h index cb38b4f7db54..4fbb738e2604 100644 --- a/pkg/uwb-core/include/dpl/dpl_mutex.h +++ b/pkg/uwb-core/include/dpl/dpl_mutex.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_MUTEX_H -#define DPL_DPL_MUTEX_H - #include "os/os_mutex.h" #ifdef __cplusplus @@ -76,5 +75,3 @@ static inline dpl_error_t dpl_mutex_release(struct dpl_mutex *mu) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_MUTEX_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_os.h b/pkg/uwb-core/include/dpl/dpl_os.h index adfdcd5b997d..59f74e4b63f4 100644 --- a/pkg/uwb-core/include/dpl/dpl_os.h +++ b/pkg/uwb-core/include/dpl/dpl_os.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_OS_H -#define DPL_DPL_OS_H - #include "os/os.h" #ifdef __cplusplus @@ -73,5 +72,3 @@ static inline bool dpl_hw_is_in_critical(void) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_OS_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_sem.h b/pkg/uwb-core/include/dpl/dpl_sem.h index 5c8dfadfdef5..563ecc1e27e2 100644 --- a/pkg/uwb-core/include/dpl/dpl_sem.h +++ b/pkg/uwb-core/include/dpl/dpl_sem.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_SEM_H -#define DPL_DPL_SEM_H - #include #include "dpl_types.h" @@ -96,5 +95,3 @@ static inline int16_t dpl_sem_get_count(struct dpl_sem *sem) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_SEM_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_tasks.h b/pkg/uwb-core/include/dpl/dpl_tasks.h index e92b7442e86c..06797ea366c5 100644 --- a/pkg/uwb-core/include/dpl/dpl_tasks.h +++ b/pkg/uwb-core/include/dpl/dpl_tasks.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_TASKS_H -#define DPL_DPL_TASKS_H - #include "os/os_task.h" #ifdef __cplusplus @@ -94,5 +93,3 @@ static inline void dpl_task_yield(void) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_TASKS_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_time.h b/pkg/uwb-core/include/dpl/dpl_time.h index 4432bf1ea927..6259dea8fb8c 100644 --- a/pkg/uwb-core/include/dpl/dpl_time.h +++ b/pkg/uwb-core/include/dpl/dpl_time.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_TIME_H -#define DPL_DPL_TIME_H - #include "os/os_time.h" #ifdef __cplusplus @@ -99,5 +98,3 @@ static inline void dpl_time_delay(dpl_time_t ticks) #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_TIME_H */ diff --git a/pkg/uwb-core/include/dpl/dpl_types.h b/pkg/uwb-core/include/dpl/dpl_types.h index 4009bf0c89db..d552c1e80787 100644 --- a/pkg/uwb-core/include/dpl/dpl_types.h +++ b/pkg/uwb-core/include/dpl/dpl_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_DPL_TYPES_H -#define DPL_DPL_TYPES_H - #include #include @@ -116,5 +115,3 @@ typedef double dpl_float64_t; #ifdef __cplusplus } #endif - -#endif /* DPL_DPL_TYPES_H */ diff --git a/pkg/uwb-core/include/dpl/queue.h b/pkg/uwb-core/include/dpl/queue.h index 84e9da9ae138..16e99706a8c4 100644 --- a/pkg/uwb-core/include/dpl/queue.h +++ b/pkg/uwb-core/include/dpl/queue.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef DPL_QUEUE_H -#define DPL_QUEUE_H - #include "os/os_queue.h" #ifdef __cplusplus @@ -29,5 +28,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_QUEUE_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds.h index 63297f5e2db4..227ae11f06e1 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_TWR_DS_H -#define DPL_SYSCFG_SYSCFG_TWR_DS_H - #ifdef __cplusplus extern "C" { #endif @@ -49,5 +48,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_TWR_DS_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds_ext.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds_ext.h index 9f42f64f5418..9594ed7fab6b 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds_ext.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ds_ext.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_TWR_DS_EXT_H -#define DPL_SYSCFG_SYSCFG_TWR_DS_EXT_H - #ifdef __cplusplus extern "C" { #endif @@ -49,5 +48,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_TWR_DS_EXT_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss.h index f8fe1f34b4ba..e137316abaef 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_TWR_SS_H -#define DPL_SYSCFG_SYSCFG_TWR_SS_H - #ifdef __cplusplus extern "C" { #endif @@ -49,5 +48,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_TWR_SS_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ack.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ack.h index d53ccf8af412..87aede07968c 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ack.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_TWR_SS_ACK_H -#define DPL_SYSCFG_SYSCFG_TWR_SS_ACK_H - #ifdef __cplusplus extern "C" { #endif @@ -49,5 +48,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_TWR_SS_ACK_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ext.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ext.h index bf1dd8fcd164..d6784aec658d 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ext.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_twr_ss_ext.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_TWR_SS_EXT_H -#define DPL_SYSCFG_SYSCFG_TWR_SS_EXT_H - #ifdef __cplusplus extern "C" { #endif @@ -49,5 +48,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_TWR_SS_EXT_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb.h index 3ebe026879ff..86bae6858c47 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_UWB_H -#define DPL_SYSCFG_SYSCFG_UWB_H - #ifdef __cplusplus extern "C" { #endif @@ -140,5 +139,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_UWB_H */ diff --git a/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb_rng.h b/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb_rng.h index d10f93ef7b55..0f032a52b3ae 100644 --- a/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb_rng.h +++ b/pkg/uwb-core/include/dpl_syscfg/syscfg_uwb_rng.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef DPL_SYSCFG_SYSCFG_UWB_RNG_H -#define DPL_SYSCFG_SYSCFG_UWB_RNG_H - #ifdef __cplusplus extern "C" { #endif @@ -63,5 +62,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* DPL_SYSCFG_SYSCFG_UWB_RNG_H */ diff --git a/pkg/uwb-core/include/uwb_core.h b/pkg/uwb-core/include/uwb_core.h index 48c3b636b25e..b9bed07bac2d 100644 --- a/pkg/uwb-core/include/uwb_core.h +++ b/pkg/uwb-core/include/uwb_core.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef UWB_CORE_H -#define UWB_CORE_H - #include #include "event.h" #if IS_USED(MODULE_UWB_CORE_EVENT_THREAD) @@ -69,5 +68,4 @@ event_queue_t *uwb_core_get_eventq(void); } #endif -#endif /* UWB_CORE_H */ /** @} */ diff --git a/pkg/uwb-dw1000/include/syscfg_uwb_dw1000.h b/pkg/uwb-dw1000/include/syscfg_uwb_dw1000.h index 7e62e91bf124..06273f856aec 100644 --- a/pkg/uwb-dw1000/include/syscfg_uwb_dw1000.h +++ b/pkg/uwb-dw1000/include/syscfg_uwb_dw1000.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef SYSCFG_UWB_DW1000_H -#define SYSCFG_UWB_DW1000_H - #ifdef __cplusplus extern "C" { #endif @@ -116,5 +115,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* SYSCFG_UWB_DW1000_H */ diff --git a/pkg/uwb-dw1000/include/uwb_dw1000.h b/pkg/uwb-dw1000/include/uwb_dw1000.h index 72eb617f8a52..05093b025693 100644 --- a/pkg/uwb-dw1000/include/uwb_dw1000.h +++ b/pkg/uwb-dw1000/include/uwb_dw1000.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_dw1000 * @@ -17,8 +19,6 @@ * @author Francisco Molina * @} */ -#ifndef UWB_DW1000_H -#define UWB_DW1000_H #include @@ -91,5 +91,3 @@ void uwb_dw1000_update_config_from_otp(dw1000_dev_instance_t* dev); #ifdef __cplusplus } #endif - -#endif /* UWB_DW1000_H */ diff --git a/pkg/uwb-dw1000/include/uwb_dw1000_config.h b/pkg/uwb-dw1000/include/uwb_dw1000_config.h index 34bf95d06159..213ec44e3b5a 100644 --- a/pkg/uwb-dw1000/include/uwb_dw1000_config.h +++ b/pkg/uwb-dw1000/include/uwb_dw1000_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_core * @{ @@ -17,9 +19,6 @@ * @} */ -#ifndef UWB_DW1000_CONFIG_H -#define UWB_DW1000_CONFIG_H - #include "dw1000/dw1000_regs.h" #ifdef __cplusplus @@ -269,5 +268,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* UWB_DW1000_CONFIG_H */ diff --git a/pkg/uwb-dw1000/include/uwb_dw1000_params.h b/pkg/uwb-dw1000/include/uwb_dw1000_params.h index 11fc23ce6768..835dcc16a03d 100644 --- a/pkg/uwb-dw1000/include/uwb_dw1000_params.h +++ b/pkg/uwb-dw1000/include/uwb_dw1000_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_uwb_dw1000 * @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef UWB_DW1000_PARAMS_H -#define UWB_DW1000_PARAMS_H - #include "board.h" #include "uwb_dw1000.h" #include "dpl/dpl_sem.h" @@ -92,5 +91,4 @@ static const dw1000_params_t dw1000_params[] = } #endif -#endif /* UWB_DW1000_PARAMS_H */ /** @} */ diff --git a/pkg/wakaama/include/lwm2m_client.h b/pkg/wakaama/include/lwm2m_client.h index 49c1e21c76db..504a9c883ba2 100644 --- a/pkg/wakaama/include/lwm2m_client.h +++ b/pkg/wakaama/include/lwm2m_client.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_wakaama * @defgroup lwm2m_client LwM2M Client using Wakaama @@ -17,9 +19,6 @@ * @author Leandro Lanzieri */ -#ifndef LWM2M_CLIENT_H -#define LWM2M_CLIENT_H - #ifdef __cplusplus extern "C" { #endif @@ -163,5 +162,4 @@ void lwm2m_client_remove_credential(credman_tag_t tag); } #endif -#endif /* LWM2M_CLIENT_H */ /** @} */ diff --git a/pkg/wakaama/include/lwm2m_client_config.h b/pkg/wakaama/include/lwm2m_client_config.h index b6dd1e239b2f..0bae9f52c996 100644 --- a/pkg/wakaama/include/lwm2m_client_config.h +++ b/pkg/wakaama/include/lwm2m_client_config.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_wakaama * @ingroup config @@ -23,9 +25,6 @@ * @author Leandro Lanzieri */ -#ifndef LWM2M_CLIENT_CONFIG_H -#define LWM2M_CLIENT_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -109,5 +108,4 @@ extern "C" { #ifdef __cplusplus } #endif -#endif /* LWM2M_CLIENT_CONFIG_H */ /** @} */ diff --git a/pkg/wakaama/include/lwm2m_client_connection.h b/pkg/wakaama/include/lwm2m_client_connection.h index 4d2a335bbc13..643055b63257 100644 --- a/pkg/wakaama/include/lwm2m_client_connection.h +++ b/pkg/wakaama/include/lwm2m_client_connection.h @@ -16,6 +16,9 @@ * Christian Manal - Ported to RIOT OS * *******************************************************************************/ + +#pragma once + /* * Copyright (C) 2018 Beduino Master Projekt - University of Bremen * Copyright (C) 2019 HAW Hamburg @@ -37,9 +40,6 @@ * @author Leandro Lanzieri */ -#ifndef LWM2M_CLIENT_CONNECTION_H -#define LWM2M_CLIENT_CONNECTION_H - #ifdef __cplusplus extern "C" { #endif @@ -86,5 +86,4 @@ int lwm2m_connection_handle_packet(lwm2m_client_connection_t *conn, } #endif -#endif /* LWM2M_CLIENT_CONNECTION_H */ /** @} */ diff --git a/pkg/wakaama/include/lwm2m_client_objects.h b/pkg/wakaama/include/lwm2m_client_objects.h index fe510b7b0f3f..627f2e1467b5 100644 --- a/pkg/wakaama/include/lwm2m_client_objects.h +++ b/pkg/wakaama/include/lwm2m_client_objects.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_client * @{ @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef LWM2M_CLIENT_OBJECTS_H -#define LWM2M_CLIENT_OBJECTS_H - #ifdef __cplusplus extern "C" { #endif @@ -68,5 +67,4 @@ lwm2m_object_t *lwm2m_client_get_acc_ctrl_object( } #endif -#endif /* LWM2M_CLIENT_OBJECTS_H */ /** @} */ diff --git a/pkg/wakaama/include/lwm2m_platform.h b/pkg/wakaama/include/lwm2m_platform.h index 21ad1f5fd6db..79be57565ffb 100644 --- a/pkg/wakaama/include/lwm2m_platform.h +++ b/pkg/wakaama/include/lwm2m_platform.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_wakaama * @defgroup lwm2m_platform Platform adaption for Wakaama package @@ -16,8 +18,6 @@ * * @author Leandro Lanzieri */ -#ifndef LWM2M_PLATFORM_H -#define LWM2M_PLATFORM_H #ifdef __cplusplus extern "C" { @@ -50,5 +50,4 @@ void lwm2m_tlsf_status(void); } #endif -#endif /* LWM2M_PLATFORM_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/barometer.h b/pkg/wakaama/include/objects/barometer.h index e97148c57f44..3728f5731a64 100644 --- a/pkg/wakaama/include/objects/barometer.h +++ b/pkg/wakaama/include/objects/barometer.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_barometer Barometer @@ -88,9 +90,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_BAROMETER_H -#define OBJECTS_BAROMETER_H - #ifdef __cplusplus extern "C" { #endif @@ -157,5 +156,4 @@ void lwm2m_object_barometer_update_value(const lwm2m_client_data_t *client_data, } #endif -#endif /* OBJECTS_BAROMETER_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/common.h b/pkg/wakaama/include/objects/common.h index 4f9df2186d73..ea6b520879fa 100644 --- a/pkg/wakaama/include/objects/common.h +++ b/pkg/wakaama/include/objects/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_wakaama * @defgroup lwm2m_objects_common Common LwM2M Object functionalities @@ -17,9 +19,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_COMMON_H -#define OBJECTS_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -511,5 +510,4 @@ int lwm2m_set_objlink_by_path(lwm2m_client_data_t *client_data, const char *path } #endif -#endif /* OBJECTS_COMMON_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/current.h b/pkg/wakaama/include/objects/current.h index 797adf18ed85..1d4d26158cc7 100644 --- a/pkg/wakaama/include/objects/current.h +++ b/pkg/wakaama/include/objects/current.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_current Current @@ -86,9 +88,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_CURRENT_H -#define OBJECTS_CURRENT_H - #ifdef __cplusplus extern "C" { #endif @@ -155,5 +154,4 @@ void lwm2m_object_current_update_value(const lwm2m_client_data_t *client_data, } #endif -#endif /* OBJECTS_CURRENT_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/device.h b/pkg/wakaama/include/objects/device.h index 5cf1bb06259c..2901b54c7214 100644 --- a/pkg/wakaama/include/objects/device.h +++ b/pkg/wakaama/include/objects/device.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_device Device LwM2M object @@ -44,9 +46,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_DEVICE_H -#define OBJECTS_DEVICE_H - #ifdef __cplusplus extern "C" { #endif @@ -270,5 +269,4 @@ bool lwm2m_device_reboot_requested(void); } #endif -#endif /* OBJECTS_DEVICE_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/humidity.h b/pkg/wakaama/include/objects/humidity.h index eb984f1f0e09..e01137a7d4e8 100644 --- a/pkg/wakaama/include/objects/humidity.h +++ b/pkg/wakaama/include/objects/humidity.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_humidity Humidity @@ -89,9 +91,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_HUMIDITY_H -#define OBJECTS_HUMIDITY_H - #ifdef __cplusplus extern "C" { #endif @@ -158,5 +157,4 @@ void lwm2m_object_humidity_update_value(const lwm2m_client_data_t *client_data, } #endif -#endif /* OBJECTS_HUMIDITY_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/illuminance.h b/pkg/wakaama/include/objects/illuminance.h index 665ed16b1481..f749b97b7c0f 100644 --- a/pkg/wakaama/include/objects/illuminance.h +++ b/pkg/wakaama/include/objects/illuminance.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_illuminance Illuminance @@ -85,9 +87,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_ILLUMINANCE_H -#define OBJECTS_ILLUMINANCE_H - #ifdef __cplusplus extern "C" { #endif @@ -154,5 +153,4 @@ void lwm2m_object_illuminance_update_value(const lwm2m_client_data_t *client_dat } #endif -#endif /* OBJECTS_ILLUMINANCE_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/ipso_sensor_base.h b/pkg/wakaama/include/objects/ipso_sensor_base.h index 2d4f233de0ef..211904ef8695 100644 --- a/pkg/wakaama/include/objects/ipso_sensor_base.h +++ b/pkg/wakaama/include/objects/ipso_sensor_base.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_ipso_sensor_base IPSO Sensor base object @@ -40,9 +42,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_IPSO_SENSOR_BASE_H -#define OBJECTS_IPSO_SENSOR_BASE_H - #ifdef __cplusplus extern "C" { #endif @@ -198,5 +197,4 @@ void lwm2m_object_ipso_sensor_base_update_value(const lwm2m_client_data_t *clien } #endif -#endif /* OBJECTS_IPSO_SENSOR_BASE_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/light_control.h b/pkg/wakaama/include/objects/light_control.h index 924f92e0bb37..768777837385 100644 --- a/pkg/wakaama/include/objects/light_control.h +++ b/pkg/wakaama/include/objects/light_control.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_light_control Light Control @@ -105,9 +107,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_LIGHT_CONTROL_H -#define OBJECTS_LIGHT_CONTROL_H - #ifdef __cplusplus extern "C" { #endif @@ -298,5 +297,4 @@ int lwm2m_object_light_control_update_app_type(uint16_t instance_id, const char } #endif -#endif /* OBJECTS_LIGHT_CONTROL_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/on_off_switch.h b/pkg/wakaama/include/objects/on_off_switch.h index 616715886b5f..8ef9a2fbe517 100644 --- a/pkg/wakaama/include/objects/on_off_switch.h +++ b/pkg/wakaama/include/objects/on_off_switch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_on_off-switch On/Off Switch @@ -78,9 +80,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_ON_OFF_SWITCH_H -#define OBJECTS_ON_OFF_SWITCH_H - #ifdef __cplusplus extern "C" { #endif @@ -200,5 +199,4 @@ int lwm2m_object_on_off_switch_update_app_type(uint16_t instance_id, const char } #endif -#endif /* OBJECTS_ON_OFF_SWITCH_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/security.h b/pkg/wakaama/include/objects/security.h index 0ae70e2651da..03339a4ba95f 100644 --- a/pkg/wakaama/include/objects/security.h +++ b/pkg/wakaama/include/objects/security.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_security Security LwM2M object @@ -155,9 +157,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_SECURITY_H -#define OBJECTS_SECURITY_H - #ifdef __cplusplus extern "C" { #endif @@ -429,5 +428,4 @@ credman_tag_t lwm2m_object_security_get_credential(uint16_t instance_id); } #endif -#endif /* OBJECTS_SECURITY_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/temperature.h b/pkg/wakaama/include/objects/temperature.h index 938cf726e5f9..2c7d6b276070 100644 --- a/pkg/wakaama/include/objects/temperature.h +++ b/pkg/wakaama/include/objects/temperature.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_temperature Temperature @@ -88,9 +90,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_TEMPERATURE_H -#define OBJECTS_TEMPERATURE_H - #ifdef __cplusplus extern "C" { #endif @@ -157,5 +156,4 @@ void lwm2m_object_temperature_update_value(const lwm2m_client_data_t *client_dat } #endif -#endif /* OBJECTS_TEMPERATURE_H */ /** @} */ diff --git a/pkg/wakaama/include/objects/voltage.h b/pkg/wakaama/include/objects/voltage.h index a5293c348693..96026b7287f2 100644 --- a/pkg/wakaama/include/objects/voltage.h +++ b/pkg/wakaama/include/objects/voltage.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup lwm2m_objects * @defgroup lwm2m_objects_voltage Voltage @@ -90,9 +92,6 @@ * @author Leandro Lanzieri */ -#ifndef OBJECTS_VOLTAGE_H -#define OBJECTS_VOLTAGE_H - #ifdef __cplusplus extern "C" { #endif @@ -159,5 +158,4 @@ void lwm2m_object_voltage_update_value(const lwm2m_client_data_t *client_data, } #endif -#endif /* OBJECTS_VOLTAGE_H */ /** @} */ diff --git a/pkg/wolfssl/include/user_settings.h b/pkg/wolfssl/include/user_settings.h index aabf30a000ae..d11ff81c3ce9 100644 --- a/pkg/wolfssl/include/user_settings.h +++ b/pkg/wolfssl/include/user_settings.h @@ -1,7 +1,6 @@ -/* user_settings.h : custom configuration for wolfcrypt/wolfSSL */ +#pragma once -#ifndef USER_SETTINGS_H -#define USER_SETTINGS_H +/* user_settings.h : custom configuration for wolfcrypt/wolfSSL */ #ifdef __cplusplus extern "C" { @@ -340,5 +339,3 @@ int strncasecmp(const char *s1, const char * s2, size_t sz); #define _SAME51_AES_COMPONENT_ #define _SAME54_AES_COMPONENT_ #define _SAMR34_AES_COMPONENT_ - -#endif /* USER_SETTINGS_H */ diff --git a/pkg/wolfssl/sock_tls/sock_tls.h b/pkg/wolfssl/sock_tls/sock_tls.h index e1c5b9a5cfb0..293d4b32bad0 100644 --- a/pkg/wolfssl/sock_tls/sock_tls.h +++ b/pkg/wolfssl/sock_tls/sock_tls.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /* @defgroup module sock_tls * @ingroup pkg_wolfssl * @brief Sock submodule for TLS/DTLS sessions @@ -227,8 +229,6 @@ #include #include -#ifndef SOCK_TLS_H -#define SOCK_TLS_H #ifdef __cplusplus extern "C" { #endif @@ -337,5 +337,3 @@ void sock_dtls_close(sock_tls_t *sk); #ifdef __cplusplus } #endif - -#endif /* SOCK_TLS_H */