diff --git a/sys/arduino/include/Arduino.h b/sys/arduino/include/Arduino.h index a151793d6fd6..4601118d098f 100644 --- a/sys/arduino/include/Arduino.h +++ b/sys/arduino/include/Arduino.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @brief Wrapper to keep source code compatibility for Arduino.h @@ -14,8 +16,6 @@ * @{ */ -#ifndef ARDUINO_H -#define ARDUINO_H #ifdef __cplusplus #include "arduino.hpp" @@ -29,5 +29,4 @@ extern "C" { } #endif -#endif /* ARDUINO_H */ /** @} */ diff --git a/sys/arduino/include/SPI.h b/sys/arduino/include/SPI.h index 646050ebc285..572b639807c3 100644 --- a/sys/arduino/include/SPI.h +++ b/sys/arduino/include/SPI.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @{ @@ -16,8 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef SPI_H -#define SPI_H #ifndef MODULE_PERIPH_SPI #error "No SPI support on your board" @@ -39,6 +39,5 @@ extern "C" { } #endif -#endif /* SPI_H */ /** @} */ diff --git a/sys/arduino/include/Wire.h b/sys/arduino/include/Wire.h index 0f546e86613d..31bf30765256 100644 --- a/sys/arduino/include/Wire.h +++ b/sys/arduino/include/Wire.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @brief Wrapper to keep source code compatibility for Wire.h @@ -14,8 +16,6 @@ * @{ */ -#ifndef WIRE_H -#define WIRE_H #ifndef MODULE_PERIPH_I2C #error "No I2C support on your board" @@ -33,5 +33,4 @@ extern "C" { } #endif -#endif /* WIRE_H */ /** @} */ diff --git a/sys/arduino/include/arduino_board.h b/sys/arduino/include/arduino_board.h index 575476727df5..7de0ef69709c 100644 --- a/sys/arduino/include/arduino_board.h +++ b/sys/arduino/include/arduino_board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @{ @@ -19,8 +21,6 @@ * @author Thomas Perrot */ -#ifndef ARDUINO_BOARD_H -#define ARDUINO_BOARD_H #include "arduino_board_analog.h" #include "arduino_board_pins.h" @@ -62,5 +62,4 @@ extern "C" { } #endif -#endif /* ARDUINO_BOARD_H */ /** @} */ diff --git a/sys/arduino/include/arduino_board_analog.h b/sys/arduino/include/arduino_board_analog.h index 0177a115d9cd..bb3854fd69ee 100644 --- a/sys/arduino/include/arduino_board_analog.h +++ b/sys/arduino/include/arduino_board_analog.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @{ @@ -20,8 +22,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_BOARD_ANALOG_H -#define ARDUINO_BOARD_ANALOG_H #include "periph/adc.h" #include "arduino_iomap.h" @@ -160,5 +160,4 @@ static const adc_t arduino_analog_map[] = { } #endif -#endif /* ARDUINO_BOARD_ANALOG_H */ /** @} */ diff --git a/sys/arduino/include/arduino_board_pins.h b/sys/arduino/include/arduino_board_pins.h index 5d1f3bbccd20..bcb78bd18327 100644 --- a/sys/arduino/include/arduino_board_pins.h +++ b/sys/arduino/include/arduino_board_pins.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @{ @@ -20,8 +22,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_BOARD_PINS_H -#define ARDUINO_BOARD_PINS_H #include "arduino_iomap.h" #include "periph/gpio.h" @@ -432,5 +432,4 @@ static const gpio_t arduino_pinmap[] = { } #endif -#endif /* ARDUINO_BOARD_PINS_H */ /** @} */ diff --git a/sys/arduino/include/arduino_board_pwm.h b/sys/arduino/include/arduino_board_pwm.h index 4fbba41100ac..1160921cb9ed 100644 --- a/sys/arduino/include/arduino_board_pwm.h +++ b/sys/arduino/include/arduino_board_pwm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_arduino * @{ @@ -20,8 +22,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_BOARD_PWM_H -#define ARDUINO_BOARD_PWM_H #include "arduino_iomap.h" #include "periph/pwm.h" @@ -160,5 +160,4 @@ static const arduino_pwm_t arduino_pwm_list[] = { } #endif -#endif /* ARDUINO_BOARD_PWM_H */ /** @} */ diff --git a/sys/auto_init/include/auto_init_priorities.h b/sys/auto_init/include/auto_init_priorities.h index d87d43cdcb45..31af2a55aa69 100644 --- a/sys/auto_init/include/auto_init_priorities.h +++ b/sys/auto_init/include/auto_init_priorities.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_auto_init * @@ -16,8 +18,6 @@ * @author Fabian Hüßler */ -#ifndef AUTO_INIT_PRIORITIES_H -#define AUTO_INIT_PRIORITIES_H #ifdef __cplusplus extern "C" { @@ -400,5 +400,4 @@ extern "C" { } #endif -#endif /* AUTO_INIT_PRIORITIES_H */ /** @} */ diff --git a/sys/clif/include/clif_internal.h b/sys/clif/include/clif_internal.h index 39bd763bcf48..e1d90cccdcce 100644 --- a/sys/clif/include/clif_internal.h +++ b/sys/clif/include/clif_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_clif * @@ -16,8 +18,6 @@ * * @author Leandro Lanzieri */ -#ifndef CLIF_INTERNAL_H -#define CLIF_INTERNAL_H #ifdef __cplusplus extern "C" { @@ -151,5 +151,4 @@ extern "C" { } #endif -#endif /* CLIF_INTERNAL_H */ /** @} */ diff --git a/sys/crypto/psa_riot_cipher/aes_common.h b/sys/crypto/psa_riot_cipher/aes_common.h index 27e53fb10d53..43e97feb0c18 100644 --- a/sys/crypto/psa_riot_cipher/aes_common.h +++ b/sys/crypto/psa_riot_cipher/aes_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @cond * @ingroup sys_crypto @@ -17,8 +19,6 @@ * */ -#ifndef AES_COMMON_H -#define AES_COMMON_H #ifdef __cplusplus extern "C" { @@ -51,6 +51,5 @@ psa_status_t cbc_aes_common_encrypt_decrypt(cipher_t *ctx, } #endif -#endif /* AES_COMMON_H */ /** @} */ /** @endcond */ diff --git a/sys/embunit/ColorTextColors.h b/sys/embunit/ColorTextColors.h index f615a9982a5f..999ced4a9718 100644 --- a/sys/embunit/ColorTextColors.h +++ b/sys/embunit/ColorTextColors.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Janos Kutscherauer */ -#ifndef COLORTEXTCOLORS_H -#define COLORTEXTCOLORS_H #ifdef __cplusplus extern "C" { @@ -53,5 +53,4 @@ extern "C" { } #endif -#endif /* COLORTEXTCOLORS_H */ /** @} */ diff --git a/sys/fs/devfs/random-vfs.h b/sys/fs/devfs/random-vfs.h index b6e7f8a81b8b..d33d5a39c6c1 100644 --- a/sys/fs/devfs/random-vfs.h +++ b/sys/fs/devfs/random-vfs.h @@ -7,6 +7,8 @@ * */ +#pragma once + /** * @ingroup sys_fs_devfs * @{ @@ -17,8 +19,6 @@ * @author Vincent Dupont */ -#ifndef RANDOM_VFS_H -#define RANDOM_VFS_H #include "vfs.h" @@ -44,5 +44,4 @@ extern const vfs_file_ops_t random_vfs_ops; } #endif -#endif /* RANDOM_VFS_H */ /** @} */ diff --git a/sys/include/analog_util.h b/sys/include/analog_util.h index 581ded7e3082..ddc87db50c09 100644 --- a/sys/include/analog_util.h +++ b/sys/include/analog_util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_analog_util Analog data conversion utilities * @ingroup sys @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef ANALOG_UTIL_H -#define ANALOG_UTIL_H #include @@ -90,5 +90,4 @@ uint16_t dac_util_mapf(float value, float min, float max); } #endif -#endif /* ANALOG_UTIL_H */ /** @} */ diff --git a/sys/include/app_metadata.h b/sys/include/app_metadata.h index 9c128aa5383e..a170fa5275ee 100644 --- a/sys/include/app_metadata.h +++ b/sys/include/app_metadata.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_app_metadata app_metadata * @ingroup sys @@ -15,8 +17,6 @@ * @author Kevin Weiss */ -#ifndef APP_METADATA_H -#define APP_METADATA_H #ifdef __cplusplus extern "C" { @@ -50,5 +50,4 @@ void app_metadata_print_json(void); } #endif -#endif /* APP_METADATA_H */ /** @} */ diff --git a/sys/include/architecture.h b/sys/include/architecture.h index 37c36a7a32d6..ab43ea576416 100644 --- a/sys/include/architecture.h +++ b/sys/include/architecture.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_architecture Platform-independent access to architecture * details @@ -21,8 +23,6 @@ * @author Marian Buschsieweke */ -#ifndef ARCHITECTURE_H -#define ARCHITECTURE_H #include #include @@ -229,5 +229,4 @@ typedef uintptr_t uinttxtptr_t; } #endif -#endif /* ARCHITECTURE_H */ /** @} */ diff --git a/sys/include/auto_init.h b/sys/include/auto_init.h index 912cac30a8cc..3c42c10b31e8 100644 --- a/sys/include/auto_init.h +++ b/sys/include/auto_init.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_auto_init Auto-initialization * @ingroup sys @@ -105,8 +107,6 @@ * @author Alexandre Abadie */ -#ifndef AUTO_INIT_H -#define AUTO_INIT_H #ifdef __cplusplus extern "C" { @@ -126,4 +126,3 @@ void auto_init(void); #endif /** @} */ -#endif /* AUTO_INIT_H */ diff --git a/sys/include/auto_init_utils.h b/sys/include/auto_init_utils.h index 4aefda05a644..bef5b8071611 100644 --- a/sys/include/auto_init_utils.h +++ b/sys/include/auto_init_utils.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_auto_init_utils Utilities to influence the order of auto-initialized modules * @ingroup sys @@ -24,8 +26,6 @@ * @experimental * @author Fabian Hüßler */ -#ifndef AUTO_INIT_UTILS_H -#define AUTO_INIT_UTILS_H #include #include "xfa.h" @@ -97,5 +97,4 @@ typedef struct { } #endif -#endif /* AUTO_INIT_UTILS_H */ /** @} */ diff --git a/sys/include/base64.h b/sys/include/base64.h index 493779776585..f21755e4e4b2 100644 --- a/sys/include/base64.h +++ b/sys/include/base64.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_base64 base64 encoder decoder * @ingroup sys_serialization @@ -17,8 +19,6 @@ * @author Martin Landsmann */ -#ifndef BASE64_H -#define BASE64_H #include /* for size_t */ @@ -128,4 +128,3 @@ int base64_decode(const void *base64_in, size_t base64_in_size, #endif /** @} */ -#endif /* BASE64_H */ diff --git a/sys/include/bcd.h b/sys/include/bcd.h index 295ba03bcefd..86f593d4a1e8 100644 --- a/sys/include/bcd.h +++ b/sys/include/bcd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_bcd Binary coded decimal * @ingroup sys @@ -18,8 +20,6 @@ * @author Martine Lenders * @author Benjamin Valentin */ -#ifndef BCD_H -#define BCD_H #include #include @@ -112,5 +112,4 @@ int bcd_buf_from_str(const char *str, size_t str_len, } #endif -#endif /* BCD_H */ /** @} */ diff --git a/sys/include/benchmark.h b/sys/include/benchmark.h index e40d7fe4733d..415b4b102909 100644 --- a/sys/include/benchmark.h +++ b/sys/include/benchmark.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_benchmark Benchmark * @ingroup sys @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef BENCHMARK_H -#define BENCHMARK_H #include @@ -65,5 +65,4 @@ void benchmark_print_time(uint32_t time, unsigned long runs, const char *name); } #endif -#endif /* BENCHMARK_H */ /** @} */ diff --git a/sys/include/bhp.h b/sys/include/bhp.h index ed2cd389eaf6..665ac5e6935d 100644 --- a/sys/include/bhp.h +++ b/sys/include/bhp.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_bhp Bottom Half Processor * @ingroup sys @@ -26,8 +28,6 @@ * @author José I. Alamos */ -#ifndef BHP_H -#define BHP_H #ifdef __cplusplus extern "C" { @@ -86,5 +86,4 @@ static inline void bhp_set_cb(bhp_t *bhp, bhp_cb_t cb, void *ctx) } #endif -#endif /* BHP_H */ /** @} */ diff --git a/sys/include/bhp/event.h b/sys/include/bhp/event.h index b31d16960848..d779840b1c70 100644 --- a/sys/include/bhp/event.h +++ b/sys/include/bhp/event.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_bhp_event Event based implementation of Bottom Half Processor * @ingroup sys_bhp @@ -16,8 +18,6 @@ * @author José I. Alamos */ -#ifndef BHP_EVENT_H -#define BHP_EVENT_H #include "bhp.h" #include @@ -58,5 +58,4 @@ void bhp_event_isr_cb(void *bhp_event_ctx); } #endif -#endif /* BHP_EVENT_H */ /** @} */ diff --git a/sys/include/bhp/msg.h b/sys/include/bhp/msg.h index e4acad17d2d0..ada072a455a2 100644 --- a/sys/include/bhp/msg.h +++ b/sys/include/bhp/msg.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_bhp_msg Message based implementation of Bottom Half Processor * @ingroup sys_bhp @@ -21,8 +23,6 @@ * @author José I. Alamos */ -#ifndef BHP_MSG_H -#define BHP_MSG_H #include "msg.h" #include "thread.h" @@ -102,5 +102,4 @@ static inline void bhp_msg_handler(msg_t *msg) } #endif -#endif /* BHP_MSG_H */ /** @} */ diff --git a/sys/include/bit.h b/sys/include/bit.h index 2879bf92019e..391867126492 100644 --- a/sys/include/bit.h +++ b/sys/include/bit.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys * @{ @@ -16,8 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef BIT_H -#define BIT_H #include #include "cpu.h" @@ -305,5 +305,4 @@ static inline bool bit_check8(volatile uint8_t *ptr, uint8_t bit) } #endif -#endif /* BIT_H */ /** @} */ diff --git a/sys/include/bitfield.h b/sys/include/bitfield.h index 19c952eb8c3f..2830c45a31bd 100644 --- a/sys/include/bitfield.h +++ b/sys/include/bitfield.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_bitfield Bitfields * @ingroup sys @@ -26,8 +28,6 @@ * @author Oliver Hahm */ -#ifndef BITFIELD_H -#define BITFIELD_H #include #include @@ -395,4 +395,3 @@ unsigned bf_popcnt(const uint8_t field[], size_t size); #endif /** @} */ -#endif /* BITFIELD_H */ diff --git a/sys/include/bloom.h b/sys/include/bloom.h index b6d87168652f..467876ff135e 100644 --- a/sys/include/bloom.h +++ b/sys/include/bloom.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /* * bloom.c * @@ -120,8 +122,6 @@ * @author Christian Mehlis */ -#ifndef BLOOM_H -#define BLOOM_H #include #include @@ -229,4 +229,3 @@ bool bloom_check(bloom_t *bloom, const uint8_t *buf, size_t len); #endif /** @} */ -#endif /* BLOOM_H */ diff --git a/sys/include/busy_wait.h b/sys/include/busy_wait.h index 243f5c425880..43cff6800708 100644 --- a/sys/include/busy_wait.h +++ b/sys/include/busy_wait.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup busy_wait Busy Waiting low-level helpers * @ingroup sys @@ -18,8 +20,6 @@ * @{ */ -#ifndef BUSY_WAIT_H -#define BUSY_WAIT_H #include #include "periph_conf.h" @@ -85,5 +85,4 @@ static inline void busy_wait_us(unsigned usec) } #endif -#endif /* BUSY_WAIT_H */ /** @} */ diff --git a/sys/include/byteorder.h b/sys/include/byteorder.h index af5e74f183dd..566fd9888890 100644 --- a/sys/include/byteorder.h +++ b/sys/include/byteorder.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys * @{ @@ -16,8 +18,6 @@ * @author René Kijewski */ -#ifndef BYTEORDER_H -#define BYTEORDER_H #include #include @@ -618,5 +618,4 @@ static inline void byteorder_htolebufll(uint8_t *buf, uint64_t val) } #endif -#endif /* BYTEORDER_H */ /** @} */ diff --git a/sys/include/can/can.h b/sys/include/can/can.h index 08e0a145604a..a46116d4d4b9 100644 --- a/sys/include/can/can.h +++ b/sys/include/can/can.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_can_dll Data Link Layer * @ingroup sys_can @@ -23,8 +25,6 @@ * @author Toon Stegen */ -#ifndef CAN_CAN_H -#define CAN_CAN_H #ifdef __cplusplus extern "C" { @@ -183,6 +183,5 @@ typedef struct can_frame can_frame_t; } #endif -#endif /* CAN_CAN_H */ /** @} */ diff --git a/sys/include/can/common.h b/sys/include/can/common.h index ba56f31b25a4..20d8be819d94 100644 --- a/sys/include/can/common.h +++ b/sys/include/can/common.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_can_common Common definitions * @ingroup sys_can @@ -23,8 +25,6 @@ * @author Vincent Dupont */ -#ifndef CAN_COMMON_H -#define CAN_COMMON_H #ifdef __cplusplus extern "C" { @@ -171,5 +171,4 @@ typedef struct can_reg_entry { } #endif -#endif /* CAN_COMMON_H */ /** @} */ diff --git a/sys/include/can/conn/isotp.h b/sys/include/can/conn/isotp.h index 12354e3a493e..a47fb5f734d2 100644 --- a/sys/include/can/conn/isotp.h +++ b/sys/include/can/conn/isotp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_can_conn * @{ @@ -17,8 +19,6 @@ * */ -#ifndef CAN_CONN_ISOTP_H -#define CAN_CONN_ISOTP_H #ifdef __cplusplus extern "C" { @@ -198,5 +198,4 @@ int conn_can_isotp_select(conn_can_isotp_slave_t **conn, conn_can_isotp_t *maste } #endif -#endif /* CAN_CONN_ISOTP_H */ /** @} */ diff --git a/sys/include/can/conn/raw.h b/sys/include/can/conn/raw.h index 3ab1ecf710eb..c8c9b9bee37a 100644 --- a/sys/include/can/conn/raw.h +++ b/sys/include/can/conn/raw.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_can_conn Connection * @ingroup sys_can @@ -22,8 +24,6 @@ * */ -#ifndef CAN_CONN_RAW_H -#define CAN_CONN_RAW_H #ifdef __cplusplus extern "C" { @@ -138,5 +138,4 @@ int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, siz } #endif -#endif /* CAN_CONN_RAW_H */ /** @} */ diff --git a/sys/include/can/device.h b/sys/include/can/device.h index 3972119d5b00..eed54ff723ef 100644 --- a/sys/include/can/device.h +++ b/sys/include/can/device.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_can_dll * @{ @@ -17,8 +19,6 @@ * @author Toon Stegen */ -#ifndef CAN_DEVICE_H -#define CAN_DEVICE_H #ifdef __cplusplus extern "C" { @@ -122,6 +122,5 @@ int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const * } #endif -#endif /* CAN_DEVICE_H */ /** @} */ diff --git a/sys/include/can/dll.h b/sys/include/can/dll.h index 15436cca6995..3322ab627ab4 100644 --- a/sys/include/can/dll.h +++ b/sys/include/can/dll.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_can_dll * @{ @@ -17,8 +19,6 @@ * @author Toon Stegen */ -#ifndef CAN_DLL_H -#define CAN_DLL_H #ifdef __cplusplus extern "C" { @@ -104,6 +104,5 @@ int can_dll_dispatch_bus_off(kernel_pid_t pid); } #endif -#endif /* CAN_DLL_H */ /** @} */ diff --git a/sys/include/can/isotp.h b/sys/include/can/isotp.h index 3e57da181c80..281cb9430610 100644 --- a/sys/include/can/isotp.h +++ b/sys/include/can/isotp.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_can_isotp ISO transport protocol over CAN * @ingroup sys_can @@ -18,8 +20,6 @@ * @author Vincent Dupont */ -#ifndef CAN_ISOTP_H -#define CAN_ISOTP_H #ifdef __cplusplus extern "C" { @@ -214,5 +214,4 @@ void isotp_free_rx(can_rx_data_t *rx); } #endif -#endif /* CAN_ISOTP_H */ /** @} */ diff --git a/sys/include/can/pkt.h b/sys/include/can/pkt.h index 85a57282f472..6d73d4073182 100644 --- a/sys/include/can/pkt.h +++ b/sys/include/can/pkt.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_can_dll * @{ @@ -17,8 +19,6 @@ * @author Toon Stegen */ -#ifndef CAN_PKT_H -#define CAN_PKT_H #ifdef __cplusplus extern "C" { @@ -143,5 +143,4 @@ void can_pkt_buf_free(void *data, size_t size); } #endif -#endif /* CAN_PKT_H */ /** @} */ diff --git a/sys/include/can/raw.h b/sys/include/can/raw.h index 6f544addb55a..b15fc9d88e22 100644 --- a/sys/include/can/raw.h +++ b/sys/include/can/raw.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_can_dll * @{ @@ -21,8 +23,6 @@ * @author Aurelien Gonce */ -#ifndef CAN_RAW_H -#define CAN_RAW_H #ifdef __cplusplus extern "C" { @@ -275,5 +275,4 @@ int raw_can_set_trx(int ifnum, can_trx_t *trx); } #endif -#endif /* CAN_RAW_H */ /** @} */ diff --git a/sys/include/can/router.h b/sys/include/can/router.h index 8c83253da6c1..ac3da1a19076 100644 --- a/sys/include/can/router.h +++ b/sys/include/can/router.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_can_dll * @{ @@ -17,8 +19,6 @@ * @author Vincent Dupont */ -#ifndef CAN_ROUTER_H -#define CAN_ROUTER_H #ifdef __cplusplus extern "C" { @@ -113,5 +113,4 @@ int can_router_dispatch_tx_error(can_pkt_t *pkt); } #endif -#endif /* CAN_ROUTER_H */ /** @} */ diff --git a/sys/include/cb_mux.h b/sys/include/cb_mux.h index 8f28223c105a..b7c8d9525026 100644 --- a/sys/include/cb_mux.h +++ b/sys/include/cb_mux.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_cb_mux Callback multiplexer * @ingroup sys @@ -26,8 +28,6 @@ * @author Matthew Blue */ -#ifndef CB_MUX_H -#define CB_MUX_H #include @@ -139,5 +139,3 @@ void cb_mux_iter(cb_mux_t *head, cb_mux_iter_t func, void *arg); #endif /** @} */ - -#endif /* CB_MUX_H */ diff --git a/sys/include/checksum/crc16_ccitt.h b/sys/include/checksum/crc16_ccitt.h index 9d90d48fff98..ff5aa5105df6 100644 --- a/sys/include/checksum/crc16_ccitt.h +++ b/sys/include/checksum/crc16_ccitt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_crc16_ccitt CRC16-CCITT * @ingroup sys_checksum @@ -29,8 +31,6 @@ * @author Bennet Blischke */ -#ifndef CHECKSUM_CRC16_CCITT_H -#define CHECKSUM_CRC16_CCITT_H #include #include @@ -186,6 +186,5 @@ uint16_t crc16_ccitt_aug_calc(const unsigned char *buf, size_t len); } #endif -#endif /* CHECKSUM_CRC16_CCITT_H */ /** @} */ diff --git a/sys/include/checksum/crc32.h b/sys/include/checksum/crc32.h index be5c1f1c7ac8..7254a0f1a452 100644 --- a/sys/include/checksum/crc32.h +++ b/sys/include/checksum/crc32.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_crc32 CRC32 * @ingroup sys_checksum @@ -17,8 +19,6 @@ * @author Benjamin Valentin */ -#ifndef CHECKSUM_CRC32_H -#define CHECKSUM_CRC32_H #include #include @@ -46,6 +46,5 @@ uint32_t crc32(const void *buf, size_t size); } #endif -#endif /* CHECKSUM_CRC32_H */ /** @} */ diff --git a/sys/include/checksum/crc8.h b/sys/include/checksum/crc8.h index 94523eed383e..3ef6ec8a4762 100644 --- a/sys/include/checksum/crc8.h +++ b/sys/include/checksum/crc8.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_crc8 CRC-8 * @ingroup sys_checksum @@ -18,8 +20,6 @@ * * @author Gunar Schorcht */ -#ifndef CHECKSUM_CRC8_H -#define CHECKSUM_CRC8_H #include #include @@ -47,5 +47,4 @@ uint8_t crc8(const uint8_t *data, size_t len, uint8_t poly, uint8_t seed); } #endif -#endif /* CHECKSUM_CRC8_H */ /** @} */ diff --git a/sys/include/checksum/fletcher16.h b/sys/include/checksum/fletcher16.h index 0cbf37bf2b53..5dc0438c9289 100644 --- a/sys/include/checksum/fletcher16.h +++ b/sys/include/checksum/fletcher16.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_fletcher16 Fletcher16 * @ingroup sys_checksum @@ -17,8 +19,6 @@ * @author Joakim Nohlgård */ -#ifndef CHECKSUM_FLETCHER16_H -#define CHECKSUM_FLETCHER16_H #include #include @@ -81,6 +81,5 @@ uint16_t fletcher16_finish(fletcher16_ctx_t *ctx); } #endif -#endif /* CHECKSUM_FLETCHER16_H */ /** @} */ diff --git a/sys/include/checksum/fletcher32.h b/sys/include/checksum/fletcher32.h index a53e02aa02b8..87723475b0bf 100644 --- a/sys/include/checksum/fletcher32.h +++ b/sys/include/checksum/fletcher32.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_fletcher32 Fletcher32 * @ingroup sys_checksum @@ -18,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef CHECKSUM_FLETCHER32_H -#define CHECKSUM_FLETCHER32_H #include #include @@ -86,6 +86,5 @@ uint32_t fletcher32_finish(fletcher32_ctx_t *ctx); } #endif -#endif /* CHECKSUM_FLETCHER32_H */ /** @} */ diff --git a/sys/include/checksum/ucrc16.h b/sys/include/checksum/ucrc16.h index 67e7d3e4fa37..9ca7a6db70fe 100644 --- a/sys/include/checksum/ucrc16.h +++ b/sys/include/checksum/ucrc16.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_checksum_ucrc16 CRC16 (lightweight) * @ingroup sys_checksum @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef CHECKSUM_UCRC16_H -#define CHECKSUM_UCRC16_H #include #include @@ -78,5 +78,4 @@ uint16_t ucrc16_calc_le(const uint8_t *buf, size_t len, uint16_t poly, } #endif -#endif /* CHECKSUM_UCRC16_H */ /** @} */ diff --git a/sys/include/chunked_ringbuffer.h b/sys/include/chunked_ringbuffer.h index 75cf9fa4ba5d..8e06b9284722 100644 --- a/sys/include/chunked_ringbuffer.h +++ b/sys/include/chunked_ringbuffer.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_chunk_buffer chunked Ringbuffer * @ingroup sys @@ -20,8 +22,6 @@ * @author Benjamin Valentin */ -#ifndef CHUNKED_RINGBUFFER_H -#define CHUNKED_RINGBUFFER_H #include #include @@ -247,5 +247,4 @@ bool crb_chunk_foreach(chunk_ringbuf_t *rb, crb_foreach_callback_t func, void *c } #endif -#endif /* CHUNKED_RINGBUFFER_H */ /** @} */ diff --git a/sys/include/clif.h b/sys/include/clif.h index 95dab7b57d86..e0169434620a 100644 --- a/sys/include/clif.h +++ b/sys/include/clif.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_clif CoRE Link Format * @ingroup sys_serialization @@ -92,8 +94,6 @@ * @author Leandro Lanzieri */ -#ifndef CLIF_H -#define CLIF_H #include @@ -331,5 +331,4 @@ int clif_init_attr(clif_attr_t *attr, clif_attr_type_t type); } #endif -#endif /* CLIF_H */ /** @} */ diff --git a/sys/include/clk.h b/sys/include/clk.h index 577642bba94f..f039a719b815 100644 --- a/sys/include/clk.h +++ b/sys/include/clk.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_clk System core clock * @ingroup sys @@ -15,8 +17,6 @@ * @brief System core clock utility functions */ -#ifndef CLK_H -#define CLK_H #include #include @@ -45,5 +45,4 @@ static inline uint32_t coreclk(void) { } #endif -#endif /* CLK_H */ /** @} */ diff --git a/sys/include/coding/xor.h b/sys/include/coding/xor.h index 37ca60d556fc..8030322085ea 100644 --- a/sys/include/coding/xor.h +++ b/sys/include/coding/xor.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_coding_xor XOR code * @ingroup sys_coding @@ -24,8 +26,6 @@ * @author Benjamin Valentin */ -#ifndef CODING_XOR_H -#define CODING_XOR_H #include #include @@ -89,5 +89,4 @@ bool coding_xor_recover(void *data, size_t len, uint8_t *parity, } #endif -#endif /* CODING_XOR_H */ /** @} */ diff --git a/sys/include/color.h b/sys/include/color.h index 63a204bfe68a..24f3b8a3a4cf 100644 --- a/sys/include/color.h +++ b/sys/include/color.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_color Color * @ingroup sys @@ -20,8 +22,6 @@ * @author Simon Brummer */ -#ifndef COLOR_H -#define COLOR_H #include @@ -183,5 +183,4 @@ void color_rgb_complementary(const color_rgb_t *rgb, color_rgb_t *comp_rgb); } #endif -#endif /* COLOR_H */ /** @} */ diff --git a/sys/include/congure.h b/sys/include/congure.h index d9930028934a..623bbe7b8364 100644 --- a/sys/include/congure.h +++ b/sys/include/congure.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure CongURE - A Congestion control framework * @ingroup sys @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_H -#define CONGURE_H #include @@ -221,5 +221,4 @@ struct congure_snd_driver { } #endif -#endif /* CONGURE_H */ /** @} */ diff --git a/sys/include/congure/abe.h b/sys/include/congure/abe.h index 392f2a1c01c1..254a632d8ff3 100644 --- a/sys/include/congure/abe.h +++ b/sys/include/congure/abe.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_abe CongURE implementation of TCP ABE * @ingroup sys_congure @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_ABE_H -#define CONGURE_ABE_H #include @@ -91,5 +91,4 @@ static inline void congure_abe_set_mss(congure_abe_snd_t *c, unsigned mss) } #endif -#endif /* CONGURE_ABE_H */ /** @} */ diff --git a/sys/include/congure/config.h b/sys/include/congure/config.h index 8f67b8b47fe6..4c768ada2bce 100644 --- a/sys/include/congure/config.h +++ b/sys/include/congure/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_config CongURE compile time configuration * @ingroup sys_congure @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_CONFIG_H -#define CONGURE_CONFIG_H #ifdef __cplusplus extern "C" { @@ -48,5 +48,4 @@ extern "C" { } #endif -#endif /* CONGURE_CONFIG_H */ /** @} */ diff --git a/sys/include/congure/mock.h b/sys/include/congure/mock.h index 429bf92bfb2e..4f81e05ff37b 100644 --- a/sys/include/congure/mock.h +++ b/sys/include/congure/mock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_mock CongURE mock implementation * @ingroup sys_congure @@ -16,8 +18,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_MOCK_H -#define CONGURE_MOCK_H #include @@ -168,5 +168,4 @@ void congure_mock_snd_setup(congure_mock_snd_t *c, } #endif -#endif /* CONGURE_MOCK_H */ /** @} */ diff --git a/sys/include/congure/quic.h b/sys/include/congure/quic.h index 37815333f574..66701131efd6 100644 --- a/sys/include/congure/quic.h +++ b/sys/include/congure/quic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_quic CongURE implementation of QUIC's CC * @ingroup sys_congure @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_QUIC_H -#define CONGURE_QUIC_H #include "ztimer.h" @@ -229,5 +229,4 @@ void congure_quic_snd_setup(congure_quic_snd_t *c, } #endif -#endif /* CONGURE_QUIC_H */ /** @} */ diff --git a/sys/include/congure/reno.h b/sys/include/congure/reno.h index 5bc41fd82e4c..6e0afeb7cc81 100644 --- a/sys/include/congure/reno.h +++ b/sys/include/congure/reno.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_reno CongURE implementation of TCP Reno * @ingroup sys_congure @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_RENO_H -#define CONGURE_RENO_H #include @@ -308,5 +308,4 @@ void congure_reno_snd_report_ecn_ce(congure_snd_t *c, ztimer_now_t time); } #endif -#endif /* CONGURE_RENO_H */ /** @} */ diff --git a/sys/include/congure/test.h b/sys/include/congure/test.h index 9340b6674731..ec27aff77c01 100644 --- a/sys/include/congure/test.h +++ b/sys/include/congure/test.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_congure_test CongURE test framework shell commands * @ingroup sys_congure @@ -33,8 +35,6 @@ * @author Martine S Lenders */ -#ifndef CONGURE_TEST_H -#define CONGURE_TEST_H #include "congure_impl.h" @@ -328,5 +328,4 @@ int congure_test_call_report(int argc, char **argv); } #endif -#endif /* CONGURE_TEST_H */ /** @} */ diff --git a/sys/include/crypto/aes.h b/sys/include/crypto/aes.h index a0151f0f4672..695c1788fe13 100644 --- a/sys/include/crypto/aes.h +++ b/sys/include/crypto/aes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -27,8 +29,6 @@ * @author Zakaria Kasmi */ -#ifndef CRYPTO_AES_H -#define CRYPTO_AES_H #include #include "crypto/ciphers.h" @@ -130,4 +130,3 @@ int aes_decrypt(const cipher_context_t *context, const uint8_t *cipher_block, #endif /** @} */ -#endif /* CRYPTO_AES_H */ diff --git a/sys/include/crypto/chacha.h b/sys/include/crypto/chacha.h index 8952f5ad3e9e..3d7c37c51136 100644 --- a/sys/include/crypto/chacha.h +++ b/sys/include/crypto/chacha.h @@ -21,6 +21,8 @@ * THE SOFTWARE. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -31,8 +33,6 @@ * @author René Kijewski */ -#ifndef CRYPTO_CHACHA_H -#define CRYPTO_CHACHA_H #include #include @@ -139,7 +139,6 @@ uint32_t chacha_prng_next(void); } #endif -#endif /* CRYPTO_CHACHA_H */ /** * @} diff --git a/sys/include/crypto/chacha20poly1305.h b/sys/include/crypto/chacha20poly1305.h index 1f6042089c4d..91128b5bd064 100644 --- a/sys/include/crypto/chacha20poly1305.h +++ b/sys/include/crypto/chacha20poly1305.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_crypto_chacha20poly1305 chacha20poly1305 AEAD cipher * @ingroup sys_crypto @@ -25,8 +27,6 @@ * @author Koen Zandberg */ -#ifndef CRYPTO_CHACHA20POLY1305_H -#define CRYPTO_CHACHA20POLY1305_H #include "crypto/poly1305.h" @@ -114,5 +114,4 @@ void chacha20_encrypt_decrypt(const uint8_t *input, uint8_t *output, #ifdef __cplusplus } #endif -#endif /* CRYPTO_CHACHA20POLY1305_H */ /** @} */ diff --git a/sys/include/crypto/ciphers.h b/sys/include/crypto/ciphers.h index b9ae66fa479e..203734657a2a 100644 --- a/sys/include/crypto/ciphers.h +++ b/sys/include/crypto/ciphers.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -19,8 +21,6 @@ * @author Mark Essien */ -#ifndef CRYPTO_CIPHERS_H -#define CRYPTO_CIPHERS_H #include #include "modules.h" @@ -188,4 +188,3 @@ int cipher_get_block_size(const cipher_t *cipher); #endif /** @} */ -#endif /* CRYPTO_CIPHERS_H */ diff --git a/sys/include/crypto/helper.h b/sys/include/crypto/helper.h index 667a92be4960..176a0742e491 100644 --- a/sys/include/crypto/helper.h +++ b/sys/include/crypto/helper.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -17,8 +19,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_HELPER_H -#define CRYPTO_HELPER_H #include #include @@ -67,5 +67,4 @@ void crypto_secure_wipe(void *buf, size_t len); } #endif -#endif /* CRYPTO_HELPER_H */ /** @} */ diff --git a/sys/include/crypto/modes/cbc.h b/sys/include/crypto/modes/cbc.h index 914016f0f31e..747a19549015 100644 --- a/sys/include/crypto/modes/cbc.h +++ b/sys/include/crypto/modes/cbc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -17,8 +19,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CBC_H -#define CRYPTO_MODES_CBC_H #include #include "crypto/ciphers.h" @@ -68,5 +68,4 @@ int cipher_decrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *in } #endif -#endif /* CRYPTO_MODES_CBC_H */ /** @} */ diff --git a/sys/include/crypto/modes/ccm.h b/sys/include/crypto/modes/ccm.h index d8e11345c55a..47d404433115 100644 --- a/sys/include/crypto/modes/ccm.h +++ b/sys/include/crypto/modes/ccm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -17,8 +19,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CCM_H -#define CRYPTO_MODES_CCM_H #include "crypto/ciphers.h" @@ -109,5 +109,4 @@ int cipher_decrypt_ccm(const cipher_t *cipher, } #endif -#endif /* CRYPTO_MODES_CCM_H */ /** @} */ diff --git a/sys/include/crypto/modes/ctr.h b/sys/include/crypto/modes/ctr.h index 7f65b44ab4b2..f7585d197b78 100644 --- a/sys/include/crypto/modes/ctr.h +++ b/sys/include/crypto/modes/ctr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -17,8 +19,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CTR_H -#define CRYPTO_MODES_CTR_H #include "crypto/ciphers.h" @@ -75,5 +75,4 @@ int cipher_decrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16], } #endif -#endif /* CRYPTO_MODES_CTR_H */ /** @} */ diff --git a/sys/include/crypto/modes/ecb.h b/sys/include/crypto/modes/ecb.h index 35b23098efc5..81ca677ffb1a 100644 --- a/sys/include/crypto/modes/ecb.h +++ b/sys/include/crypto/modes/ecb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -17,8 +19,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_ECB_H -#define CRYPTO_MODES_ECB_H #include "crypto/ciphers.h" @@ -65,5 +65,4 @@ int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input, } #endif -#endif /* CRYPTO_MODES_ECB_H */ /** @} */ diff --git a/sys/include/crypto/modes/ocb.h b/sys/include/crypto/modes/ocb.h index ef076b40a560..2dae043ef6ae 100644 --- a/sys/include/crypto/modes/ocb.h +++ b/sys/include/crypto/modes/ocb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @{ @@ -20,8 +22,6 @@ * @author Mathias Tausig */ -#ifndef CRYPTO_MODES_OCB_H -#define CRYPTO_MODES_OCB_H #include "crypto/ciphers.h" #include @@ -112,5 +112,4 @@ int32_t cipher_decrypt_ocb(const cipher_t *cipher, } #endif -#endif /* CRYPTO_MODES_OCB_H */ /** @} */ diff --git a/sys/include/crypto/poly1305.h b/sys/include/crypto/poly1305.h index 0512b0f40b23..581e75575d01 100644 --- a/sys/include/crypto/poly1305.h +++ b/sys/include/crypto/poly1305.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_crypto * @defgroup sys_crypto_poly1305 poly1305 @@ -25,8 +27,6 @@ * * @see https://tools.ietf.org/html/rfc8439#section-2.5 */ -#ifndef CRYPTO_POLY1305_H -#define CRYPTO_POLY1305_H #ifdef __cplusplus extern "C" { @@ -90,5 +90,4 @@ void poly1305_auth(uint8_t *mac, const uint8_t *data, size_t len, #ifdef __cplusplus } #endif -#endif /* CRYPTO_POLY1305_H */ /** @} */ diff --git a/sys/include/crypto/psa/riot_ciphers.h b/sys/include/crypto/psa/riot_ciphers.h index 433be055fa6b..993ffd9c8c63 100644 --- a/sys/include/crypto/psa/riot_ciphers.h +++ b/sys/include/crypto/psa/riot_ciphers.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -16,8 +18,6 @@ * */ -#ifndef CRYPTO_PSA_RIOT_CIPHERS_H -#define CRYPTO_PSA_RIOT_CIPHERS_H #ifdef __cplusplus extern "C" { @@ -40,5 +40,4 @@ typedef cipher_t psa_cipher_aes_256_ctx_t; } #endif -#endif /* CRYPTO_PSA_RIOT_CIPHERS_H */ /** @} */ diff --git a/sys/include/dbgpin.h b/sys/include/dbgpin.h index 192d73db5b12..c61479c0b36b 100644 --- a/sys/include/dbgpin.h +++ b/sys/include/dbgpin.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_dbgpin Direct pin control for debugging/profiling * @ingroup sys @@ -20,8 +22,6 @@ * @author Hauke Petersen */ -#ifndef DBGPIN_H -#define DBGPIN_H #include "container.h" #include "periph/gpio.h" @@ -124,5 +124,4 @@ static inline void dbgpin_init(void) } #endif -#endif /* DBGPIN_H */ /** @} **/ diff --git a/sys/include/debug_irq_disable.h b/sys/include/debug_irq_disable.h index 1a15042ff164..833345b120fd 100644 --- a/sys/include/debug_irq_disable.h +++ b/sys/include/debug_irq_disable.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup debug_irq_disable IRQ Disable Debug helper * @ingroup sys @@ -17,8 +19,6 @@ * @author Benjamin Valentin */ -#ifndef DEBUG_IRQ_DISABLE_H -#define DEBUG_IRQ_DISABLE_H #include @@ -51,4 +51,3 @@ void debug_irq_disable_print(const char *file, unsigned line, uint32_t ticks); #endif /** @} */ -#endif /* DEBUG_IRQ_DISABLE_H */ diff --git a/sys/include/div.h b/sys/include/div.h index 6c044f76bccb..cfdeef206810 100644 --- a/sys/include/div.h +++ b/sys/include/div.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_div Integer division functions * @ingroup sys_math @@ -21,8 +23,6 @@ * @{ */ -#ifndef DIV_H -#define DIV_H #include #include @@ -181,4 +181,3 @@ static inline uint32_t div_u32_mod_44488(uint32_t val) } #endif /** @} */ -#endif /* DIV_H */ diff --git a/sys/include/ecc/golay2412.h b/sys/include/ecc/golay2412.h index 1aa314da368a..f5505673b693 100644 --- a/sys/include/ecc/golay2412.h +++ b/sys/include/ecc/golay2412.h @@ -21,6 +21,8 @@ * THE SOFTWARE. */ +#pragma once + /** * @ingroup sys_ecc * @{ @@ -36,8 +38,6 @@ * @author Peter Kietzmann */ -#ifndef ECC_GOLAY2412_H -#define ECC_GOLAY2412_H #ifdef __cplusplus extern "C" { @@ -71,5 +71,4 @@ void golay2412_decode(uint32_t _dec_msg_len, } #endif -#endif /* ECC_GOLAY2412_H */ /** @} */ diff --git a/sys/include/ecc/hamming256.h b/sys/include/ecc/hamming256.h index 3d852fa8935a..39341be14086 100644 --- a/sys/include/ecc/hamming256.h +++ b/sys/include/ecc/hamming256.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_ecc * @brief @@ -15,8 +17,6 @@ * @author Lucas Jenß */ -#ifndef ECC_HAMMING256_H -#define ECC_HAMMING256_H #include @@ -64,5 +64,4 @@ uint8_t hamming_verify256x( uint8_t *data, uint32_t size, const uint8_t *code ); } #endif -#endif /* ECC_HAMMING256_H */ /** @} */ diff --git a/sys/include/ecc/repetition.h b/sys/include/ecc/repetition.h index 964b84bab35b..cf7bc68b53e4 100644 --- a/sys/include/ecc/repetition.h +++ b/sys/include/ecc/repetition.h @@ -21,6 +21,8 @@ * THE SOFTWARE. */ +#pragma once + /** * @ingroup sys_ecc * @{ @@ -32,8 +34,6 @@ * @author Peter Kietzmann */ -#ifndef ECC_REPETITION_H -#define ECC_REPETITION_H #ifdef __cplusplus extern "C" { @@ -73,5 +73,4 @@ void repetition_decode(unsigned int _dec_msg_len, } #endif -#endif /* ECC_REPETITION_H */ /** @} */ diff --git a/sys/include/eepreg.h b/sys/include/eepreg.h index 269d6c3044bd..c0ffe308d9ed 100644 --- a/sys/include/eepreg.h +++ b/sys/include/eepreg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_eepreg EEPROM registration * @ingroup sys @@ -54,8 +56,6 @@ * @author Matthew Blue */ -#ifndef EEPREG_H -#define EEPREG_H #include @@ -267,5 +267,3 @@ int eepreg_free(uint32_t *len); #endif /** @} */ - -#endif /* EEPREG_H */ diff --git a/sys/include/embUnit/ColorOutputter.h b/sys/include/embUnit/ColorOutputter.h index 1f40fa546837..f704eefbeb3c 100644 --- a/sys/include/embUnit/ColorOutputter.h +++ b/sys/include/embUnit/ColorOutputter.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Janos Kutscherauer */ -#ifndef EMBUNIT_COLOROUTPUTTER_H -#define EMBUNIT_COLOROUTPUTTER_H #include "Outputter.h" @@ -41,5 +41,4 @@ void ColorOutputter_printStatistics(OutputterRef self, TestResultRef result); } #endif -#endif /* EMBUNIT_COLOROUTPUTTER_H */ /** @} */ diff --git a/sys/include/embUnit/ColorTextOutputter.h b/sys/include/embUnit/ColorTextOutputter.h index 8df9868131a0..eb5330ef0a78 100644 --- a/sys/include/embUnit/ColorTextOutputter.h +++ b/sys/include/embUnit/ColorTextOutputter.h @@ -6,13 +6,13 @@ * directory for more details. */ +#pragma once + /** * @{ * * @file ColorTextOutputter.h */ -#ifndef EMBUNIT_COLORTEXTOUTPUTTER_H -#define EMBUNIT_COLORTEXTOUTPUTTER_H #include "Outputter.h" @@ -26,5 +26,4 @@ OutputterRef ColorTextOutputter_outputter(void); } #endif -#endif /* EMBUNIT_COLORTEXTOUTPUTTER_H */ /** @} */ diff --git a/sys/include/endian.h b/sys/include/endian.h index 9f253955d896..0df9c9931b38 100644 --- a/sys/include/endian.h +++ b/sys/include/endian.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_endian endian conversions as provided by most libcs * @ingroup sys @@ -20,8 +22,6 @@ * @author Marian Buschsieweke */ -#ifndef ENDIAN_H -#define ENDIAN_H #include @@ -177,5 +177,4 @@ uint64_t le64toh(uint64_t little_endian_64bits);/**< little endian to host, 64 b } #endif -#endif /* ENDIAN_H */ /** @} */ diff --git a/sys/include/entropy_source.h b/sys/include/entropy_source.h index 6e30609d7df2..d1377dbf6f6e 100644 --- a/sys/include/entropy_source.h +++ b/sys/include/entropy_source.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_entropy_source_common Entropy Source Common * @ingroup sys_entropy_source @@ -18,8 +20,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_H -#define ENTROPY_SOURCE_H #ifdef __cplusplus extern "C" { @@ -302,5 +302,4 @@ static inline int entropy_source_test(entropy_source_tests_rep_t *state_rep, } #endif -#endif /* ENTROPY_SOURCE_H */ /** @} */ diff --git a/sys/include/entropy_source/adc_noise.h b/sys/include/entropy_source/adc_noise.h index 5fcef460fcce..aca30b05b77a 100644 --- a/sys/include/entropy_source/adc_noise.h +++ b/sys/include/entropy_source/adc_noise.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_entropy_source_adc ADC Noise Entropy Source * @ingroup sys_entropy_source @@ -31,8 +33,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_ADC_NOISE_H -#define ENTROPY_SOURCE_ADC_NOISE_H #ifdef __cplusplus extern "C" { @@ -154,5 +154,4 @@ static inline uint32_t entropy_source_adc_entropy_per_sample(void) } #endif -#endif /* ENTROPY_SOURCE_ADC_NOISE_H */ /** @} */ diff --git a/sys/include/entropy_source/zero_entropy.h b/sys/include/entropy_source/zero_entropy.h index aa76158a530e..9de1531c8eb8 100644 --- a/sys/include/entropy_source/zero_entropy.h +++ b/sys/include/entropy_source/zero_entropy.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_entropy_source_zero Zero Entropy Source * @ingroup sys_entropy_source @@ -19,8 +21,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_ZERO_ENTROPY_H -#define ENTROPY_SOURCE_ZERO_ENTROPY_H #ifdef __cplusplus extern "C" { @@ -88,5 +88,4 @@ int entropy_source_zero_get(uint8_t *buf, size_t len); } #endif -#endif /* ENTROPY_SOURCE_ZERO_ENTROPY_H */ /** @} */ diff --git a/sys/include/event.h b/sys/include/event.h index 53d9dc16a0c9..eee8004b5dc8 100644 --- a/sys/include/event.h +++ b/sys/include/event.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_event Event Queue * @ingroup sys @@ -93,8 +95,6 @@ * @author Hauke Petersen */ -#ifndef EVENT_H -#define EVENT_H #include #include @@ -513,5 +513,4 @@ void event_sync(event_queue_t *queue); #ifdef __cplusplus } #endif -#endif /* EVENT_H */ /** @} */ diff --git a/sys/include/event/callback.h b/sys/include/event/callback.h index ffed28db3b3a..8de8abd67466 100644 --- a/sys/include/event/callback.h +++ b/sys/include/event/callback.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides a callback-with-argument event type @@ -33,8 +35,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_CALLBACK_H -#define EVENT_CALLBACK_H #include #include "event.h" @@ -123,5 +123,4 @@ void _event_callback_handler(event_t *event); #ifdef __cplusplus } #endif -#endif /* EVENT_CALLBACK_H */ /** @} */ diff --git a/sys/include/event/deferred_callback.h b/sys/include/event/deferred_callback.h index 6cc95adbca7c..7119a5f2ce07 100644 --- a/sys/include/event/deferred_callback.h +++ b/sys/include/event/deferred_callback.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Trigger an event callback after a timeout @@ -22,8 +24,6 @@ * */ -#ifndef EVENT_DEFERRED_CALLBACK_H -#define EVENT_DEFERRED_CALLBACK_H #include #include "event/callback.h" @@ -100,5 +100,4 @@ static inline void event_deferred_callback_cancel(event_deferred_callback_t *eve #ifdef __cplusplus } #endif -#endif /* EVENT_DEFERRED_CALLBACK_H */ /** @} */ diff --git a/sys/include/event/periodic.h b/sys/include/event/periodic.h index 47fc8e77cd37..5ee84bdc7512 100644 --- a/sys/include/event/periodic.h +++ b/sys/include/event/periodic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides functionality to trigger periodic events @@ -33,8 +35,6 @@ * */ -#ifndef EVENT_PERIODIC_H -#define EVENT_PERIODIC_H #include "event.h" #include "ztimer/periodic.h" @@ -151,5 +151,4 @@ static inline void event_periodic_stop(event_periodic_t *event_periodic) #ifdef __cplusplus } #endif -#endif /* EVENT_PERIODIC_H */ /** @} */ diff --git a/sys/include/event/periodic_callback.h b/sys/include/event/periodic_callback.h index 81a48aba7a79..b6f14380c577 100644 --- a/sys/include/event/periodic_callback.h +++ b/sys/include/event/periodic_callback.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides functionality to trigger periodic event callbacks @@ -22,8 +24,6 @@ * */ -#ifndef EVENT_PERIODIC_CALLBACK_H -#define EVENT_PERIODIC_CALLBACK_H #include #include "event/callback.h" @@ -180,5 +180,4 @@ static inline void event_periodic_callback_stop(event_periodic_callback_t *event #ifdef __cplusplus } #endif -#endif /* EVENT_PERIODIC_CALLBACK_H */ /** @} */ diff --git a/sys/include/event/source.h b/sys/include/event/source.h index 8e6f5a2e3278..c43674fe9992 100644 --- a/sys/include/event/source.h +++ b/sys/include/event/source.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides functionality to trigger multiple events at once @@ -19,8 +21,6 @@ * */ -#ifndef EVENT_SOURCE_H -#define EVENT_SOURCE_H #include "event.h" #include "list.h" @@ -114,5 +114,4 @@ static inline void event_source_trigger(event_source_t *source) #ifdef __cplusplus } #endif -#endif /* EVENT_SOURCE_H */ /** @} */ diff --git a/sys/include/event/thread.h b/sys/include/event/thread.h index 82ea17116100..a6a762ab9a67 100644 --- a/sys/include/event/thread.h +++ b/sys/include/event/thread.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides utility functions for event handler threads @@ -50,8 +52,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_THREAD_H -#define EVENT_THREAD_H #include @@ -124,5 +124,4 @@ extern event_queue_t event_thread_queues[EVENT_QUEUE_PRIO_NUMOF]; #ifdef __cplusplus } #endif -#endif /* EVENT_THREAD_H */ /** @} */ diff --git a/sys/include/event/timeout.h b/sys/include/event/timeout.h index 7885bb19b0be..8e441a9e348d 100644 --- a/sys/include/event/timeout.h +++ b/sys/include/event/timeout.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_event * @brief Provides functionality to trigger events after timeout @@ -34,8 +36,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_TIMEOUT_H -#define EVENT_TIMEOUT_H #include "event.h" #include "ztimer.h" @@ -127,5 +127,4 @@ static inline bool event_timeout_is_pending(const event_timeout_t *event_timeout #ifdef __cplusplus } #endif -#endif /* EVENT_TIMEOUT_H */ /** @} */ diff --git a/sys/include/evtimer.h b/sys/include/evtimer.h index 28844200c2a6..230054f17d29 100644 --- a/sys/include/evtimer.h +++ b/sys/include/evtimer.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_evtimer Millisecond interval event timers * @ingroup sys @@ -38,8 +40,6 @@ * @author Martine Lenders */ -#ifndef EVTIMER_H -#define EVTIMER_H #include #include "modules.h" @@ -121,5 +121,4 @@ static inline uint32_t evtimer_now_msec(void) } #endif -#endif /* EVTIMER_H */ /** @} */ diff --git a/sys/include/evtimer_mbox.h b/sys/include/evtimer_mbox.h index 37d9507401fb..5703172dcebe 100644 --- a/sys/include/evtimer_mbox.h +++ b/sys/include/evtimer_mbox.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup sys_evtimer * @{ @@ -15,8 +17,6 @@ * * @author Simon Brummer */ -#ifndef EVTIMER_MBOX_H -#define EVTIMER_MBOX_H #include "assert.h" #include "msg.h" @@ -87,5 +87,4 @@ static inline void evtimer_init_mbox(evtimer_t *evtimer) } #endif -#endif /* EVTIMER_MBOX_H */ /** @} */ diff --git a/sys/include/evtimer_msg.h b/sys/include/evtimer_msg.h index ce15f6c3c65a..d37ab8db7e32 100644 --- a/sys/include/evtimer_msg.h +++ b/sys/include/evtimer_msg.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup sys_evtimer * @{ @@ -17,8 +19,6 @@ * @author Kaspar Schleiser * @author Martine Lenders */ -#ifndef EVTIMER_MSG_H -#define EVTIMER_MSG_H #include "msg.h" #include "evtimer.h" @@ -84,5 +84,4 @@ static inline void evtimer_init_msg(evtimer_t *evtimer) } #endif -#endif /* EVTIMER_MSG_H */ /** @} */ diff --git a/sys/include/fido2/ctap.h b/sys/include/fido2/ctap.h index dbf522b1de0e..ec2a13e607f3 100644 --- a/sys/include/fido2/ctap.h +++ b/sys/include/fido2/ctap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap CTAP * @ingroup fido2 @@ -22,8 +24,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_H -#define FIDO2_CTAP_H #include @@ -230,5 +230,4 @@ ctap_status_code_t fido2_ctap_reset(ctap_resp_t *resp); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_H */ /** @} */ diff --git a/sys/include/fido2/ctap/ctap.h b/sys/include/fido2/ctap/ctap.h index 7849ec9f74d5..953a68804999 100644 --- a/sys/include/fido2/ctap/ctap.h +++ b/sys/include/fido2/ctap/ctap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_ctap FIDO2 CTAP * @ingroup fido2_ctap @@ -22,8 +24,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_H -#define FIDO2_CTAP_CTAP_H #include @@ -680,5 +680,4 @@ ctap_state_t *fido2_ctap_get_state(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_H */ /** @} */ diff --git a/sys/include/fido2/ctap/ctap_cbor.h b/sys/include/fido2/ctap/ctap_cbor.h index 7b5a808e8f16..20510c847e5d 100644 --- a/sys/include/fido2/ctap/ctap_cbor.h +++ b/sys/include/fido2/ctap/ctap_cbor.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_cbor FIDO2 CTAP CBOR * @ingroup fido2_ctap @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_CBOR_H -#define FIDO2_CTAP_CTAP_CBOR_H #include "fido2/ctap/ctap.h" @@ -334,5 +334,4 @@ void fido2_ctap_cbor_init_encoder(uint8_t *buf, size_t len); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_CBOR_H */ /** @} */ diff --git a/sys/include/fido2/ctap/ctap_crypto.h b/sys/include/fido2/ctap/ctap_crypto.h index ac551ccfb863..df169ee679a5 100644 --- a/sys/include/fido2/ctap/ctap_crypto.h +++ b/sys/include/fido2/ctap/ctap_crypto.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_crypto FIDO2 CTAP crypto * @ingroup fido2_ctap @@ -20,8 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_CRYPTO_H -#define FIDO2_CTAP_CTAP_CRYPTO_H #include @@ -298,5 +298,4 @@ ctap_status_code_t fido2_ctap_crypto_aes_ccm_dec(uint8_t *out, size_t out_len, #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_CRYPTO_H */ /** @} */ diff --git a/sys/include/fido2/ctap/ctap_mem.h b/sys/include/fido2/ctap/ctap_mem.h index 96e52d9da2e5..42560b5a86ff 100644 --- a/sys/include/fido2/ctap/ctap_mem.h +++ b/sys/include/fido2/ctap/ctap_mem.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_mem FIDO2 CTAP flash * @ingroup fido2_ctap @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_MEM_H -#define FIDO2_CTAP_CTAP_MEM_H #include @@ -170,5 +170,4 @@ ctap_status_code_t fido2_ctap_mem_write_rk_to_flash(ctap_resident_key_t *rk); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_MEM_H */ /** @} */ diff --git a/sys/include/fido2/ctap/ctap_utils.h b/sys/include/fido2/ctap/ctap_utils.h index 7aa988bef7e7..7072368ca092 100644 --- a/sys/include/fido2/ctap/ctap_utils.h +++ b/sys/include/fido2/ctap/ctap_utils.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_utils FIDO2 CTAP utils * @ingroup fido2_ctap @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_UTILS_H -#define FIDO2_CTAP_CTAP_UTILS_H #include #include "fido2/ctap/ctap.h" @@ -90,5 +90,4 @@ static inline bool fido2_ctap_utils_ks_equal(const ctap_resident_key_t *k1, #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_UTILS_H */ /** @} */ diff --git a/sys/include/fido2/ctap/transport/ctap_transport.h b/sys/include/fido2/ctap/transport/ctap_transport.h index 41f0ff52f8df..5aafc0e28e90 100644 --- a/sys/include/fido2/ctap/transport/ctap_transport.h +++ b/sys/include/fido2/ctap/transport/ctap_transport.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_transport FIDO2 CTAP transport * @ingroup fido2_ctap @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H -#define FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H #include #include "mutex.h" @@ -44,5 +44,4 @@ void fido2_ctap_transport_init(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H */ /** @} */ diff --git a/sys/include/fido2/ctap/transport/hid/ctap_hid.h b/sys/include/fido2/ctap/transport/hid/ctap_hid.h index 79908d81981e..47ed37623cbd 100644 --- a/sys/include/fido2/ctap/transport/hid/ctap_hid.h +++ b/sys/include/fido2/ctap/transport/hid/ctap_hid.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup fido2_ctap_transport_hid FIDO2 CTAPHID * @ingroup fido2_ctap_transport @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H -#define FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H #include @@ -251,5 +251,4 @@ bool fido2_ctap_transport_hid_should_cancel(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H */ /** @} */ diff --git a/sys/include/flash_utils.h b/sys/include/flash_utils.h index e5bdd64428d8..464a6d6f450f 100644 --- a/sys/include/flash_utils.h +++ b/sys/include/flash_utils.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_flash_utils Utility functions, macros, and types for * read-only memory @@ -44,8 +46,6 @@ * @author Marian Buschsieweke */ -#ifndef FLASH_UTILS_H -#define FLASH_UTILS_H #include #include @@ -251,5 +251,4 @@ static inline void flash_print_str(FLASH_ATTR const char *flash) } #endif -#endif /* FLASH_UTILS_H */ /** @} */ diff --git a/sys/include/fmt.h b/sys/include/fmt.h index 259bab78dc71..e485af6d6478 100644 --- a/sys/include/fmt.h +++ b/sys/include/fmt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fmt String formatting (fmt) * @ingroup sys @@ -38,8 +40,6 @@ * @author Kaspar Schleiser */ -#ifndef FMT_H -#define FMT_H #include #include @@ -618,4 +618,3 @@ size_t fmt_lpad(char *str, size_t in_len, size_t pad_len, char pad_char); #endif /** @} */ -#endif /* FMT_H */ diff --git a/sys/include/fmt_table.h b/sys/include/fmt_table.h index ecdb16726313..e3cc52ceb132 100644 --- a/sys/include/fmt_table.h +++ b/sys/include/fmt_table.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fmt_table Table extension of the string formatting API (fmt_table) * @ingroup sys_fmt @@ -24,8 +26,6 @@ * @author Marian Buschsieweke */ -#ifndef FMT_TABLE_H -#define FMT_TABLE_H #include #include @@ -53,4 +53,3 @@ void print_col_s32_dec(int32_t number, size_t width); #endif /** @} */ -#endif /* FMT_TABLE_H */ diff --git a/sys/include/frac.h b/sys/include/frac.h index 2c2031842203..cc11a850a182 100644 --- a/sys/include/frac.h +++ b/sys/include/frac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_frac Fractional integer operations * @ingroup sys @@ -38,8 +40,6 @@ * @{ */ -#ifndef FRAC_H -#define FRAC_H #include @@ -98,4 +98,3 @@ static inline uint32_t frac_scale(const frac_t *frac, uint32_t x) } #endif /** @} */ -#endif /* FRAC_H */ diff --git a/sys/include/fs/constfs.h b/sys/include/fs/constfs.h index 435fe95001cc..74c7cefc2103 100644 --- a/sys/include/fs/constfs.h +++ b/sys/include/fs/constfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fs_constfs ConstFS static file system * @ingroup sys_fs @@ -21,8 +23,6 @@ * @author Joakim Nohlgård */ -#ifndef FS_CONSTFS_H -#define FS_CONSTFS_H #include #include @@ -61,6 +61,5 @@ extern const vfs_file_system_t constfs_file_system; } #endif -#endif /* FS_CONSTFS_H */ /** @} */ diff --git a/sys/include/fs/devfs.h b/sys/include/fs/devfs.h index 4bc08d513344..267224b62379 100644 --- a/sys/include/fs/devfs.h +++ b/sys/include/fs/devfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fs_devfs DevFS device file system * @ingroup sys_fs @@ -22,8 +24,6 @@ * @author Joakim Nohlgård */ -#ifndef FS_DEVFS_H -#define FS_DEVFS_H #include "clist.h" #include "vfs.h" @@ -89,6 +89,5 @@ int devfs_unregister(devfs_t *node); } #endif -#endif /* FS_DEVFS_H */ /** @} */ diff --git a/sys/include/fs/fatfs.h b/sys/include/fs/fatfs.h index bfaf86e4d865..20ddab7769d5 100644 --- a/sys/include/fs/fatfs.h +++ b/sys/include/fs/fatfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fatfs FatFs integration * @ingroup sys_fs @@ -17,8 +19,6 @@ * @author Michel Rottleuthner */ -#ifndef FS_FATFS_H -#define FS_FATFS_H #ifdef __cplusplus extern "C" { @@ -101,6 +101,5 @@ extern const vfs_file_system_t fatfs_file_system; } #endif -#endif /* FS_FATFS_H */ /** @} */ diff --git a/sys/include/fs/littlefs2_fs.h b/sys/include/fs/littlefs2_fs.h index 17da92515585..b33d9df9c4db 100644 --- a/sys/include/fs/littlefs2_fs.h +++ b/sys/include/fs/littlefs2_fs.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_littlefs2 littlefs v2 integration * @ingroup pkg_littlefs2 @@ -21,8 +23,6 @@ * @author Koen Zandberg */ -#ifndef FS_LITTLEFS2_FS_H -#define FS_LITTLEFS2_FS_H #include @@ -124,5 +124,4 @@ extern const vfs_file_system_t littlefs2_file_system; } #endif -#endif /* FS_LITTLEFS2_FS_H */ /** @} */ diff --git a/sys/include/fs/littlefs_fs.h b/sys/include/fs/littlefs_fs.h index 7c458d5c2736..2aca605d494f 100644 --- a/sys/include/fs/littlefs_fs.h +++ b/sys/include/fs/littlefs_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_littlefs littlefs integration * @ingroup pkg_littlefs @@ -19,8 +21,6 @@ * @author Vincent Dupont */ -#ifndef FS_LITTLEFS_FS_H -#define FS_LITTLEFS_FS_H #include @@ -106,5 +106,4 @@ extern const vfs_file_system_t littlefs_file_system; } #endif -#endif /* FS_LITTLEFS_FS_H */ /** @} */ diff --git a/sys/include/fs/lwext4_fs.h b/sys/include/fs/lwext4_fs.h index 3cfe55f822c4..a771d154b2b0 100644 --- a/sys/include/fs/lwext4_fs.h +++ b/sys/include/fs/lwext4_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_lwext4 lwEXT4 integration * @ingroup pkg_lwext4 @@ -19,8 +21,6 @@ * @author Benjamin Valentin */ -#ifndef FS_LWEXT4_FS_H -#define FS_LWEXT4_FS_H #include @@ -54,5 +54,4 @@ extern const vfs_file_system_t lwext4_file_system; } #endif -#endif /* FS_LWEXT4_FS_H */ /** @} */ diff --git a/sys/include/fs/native_fs.h b/sys/include/fs/native_fs.h index 5abfd9092231..d0089753e9e8 100644 --- a/sys/include/fs/native_fs.h +++ b/sys/include/fs/native_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fs_native Native FS Integration * @ingroup cpu_native @@ -19,8 +21,6 @@ * @author Benjamin Valentin */ -#ifndef FS_NATIVE_FS_H -#define FS_NATIVE_FS_H #include @@ -46,5 +46,4 @@ extern const vfs_file_system_t native_file_system; } #endif -#endif /* FS_NATIVE_FS_H */ /** @} */ diff --git a/sys/include/fs/spiffs_fs.h b/sys/include/fs/spiffs_fs.h index caa305ad6be1..04d84d7a068f 100644 --- a/sys/include/fs/spiffs_fs.h +++ b/sys/include/fs/spiffs_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_spiffs SPIFFS integration * @ingroup pkg_spiffs @@ -41,8 +43,6 @@ * @author Vincent Dupont */ -#ifndef FS_SPIFFS_FS_H -#define FS_SPIFFS_FS_H #ifdef __cplusplus extern "C" { @@ -150,6 +150,5 @@ void spiffs_unlock(struct spiffs_t *fs); } #endif -#endif /* FS_SPIFFS_FS_H */ /** @} */ diff --git a/sys/include/fuzzing.h b/sys/include/fuzzing.h index feb8bb4fba8c..c09e2c0789fc 100644 --- a/sys/include/fuzzing.h +++ b/sys/include/fuzzing.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_fuzzing FUZZING utilities * @ingroup sys @@ -19,8 +21,6 @@ * @author Sören Tempel */ -#ifndef FUZZING_H -#define FUZZING_H #ifdef __cplusplus extern "C" { @@ -67,4 +67,3 @@ uint8_t *fuzzing_read_bytes(int fd, size_t *size); #endif /** @} */ -#endif /* FUZZING_H */ diff --git a/sys/include/hashes.h b/sys/include/hashes.h index 34d0b38ea04b..308a2616ce75 100644 --- a/sys/include/hashes.h +++ b/sys/include/hashes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_hashes_non_crypto * @{ @@ -17,8 +19,6 @@ * @author Christian Mehlis */ -#ifndef HASHES_H -#define HASHES_H #include #include @@ -175,4 +175,3 @@ uint32_t one_at_a_time_hash(const uint8_t *buf, size_t len); #endif /** @} */ -#endif /* HASHES_H */ diff --git a/sys/include/hashes/aes128_cmac.h b/sys/include/hashes/aes128_cmac.h index a32614e101cd..d84bcee2d453 100644 --- a/sys/include/hashes/aes128_cmac.h +++ b/sys/include/hashes/aes128_cmac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_aes128_cmac AES128_CMAC * @ingroup sys_hashes_keyed @@ -19,8 +21,6 @@ * @author José Ignacio Alamos */ -#ifndef HASHES_AES128_CMAC_H -#define HASHES_AES128_CMAC_H #include #include "crypto/ciphers.h" @@ -84,5 +84,4 @@ void aes128_cmac_final(aes128_cmac_context_t *ctx, void *digest); } #endif -#endif /* HASHES_AES128_CMAC_H */ /** @} */ diff --git a/sys/include/hashes/md5.h b/sys/include/hashes/md5.h index 56623ad7434b..91545a2d5b33 100644 --- a/sys/include/hashes/md5.h +++ b/sys/include/hashes/md5.h @@ -17,6 +17,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#pragma once + /** * @defgroup sys_hashes_md5 MD5 * @ingroup sys_hashes_unkeyed @@ -51,8 +53,6 @@ * @author Hauke Petersen */ -#ifndef HASHES_MD5_H -#define HASHES_MD5_H #include #include @@ -124,5 +124,4 @@ void md5(void *digest, const void *data, size_t len); } #endif -#endif /* HASHES_MD5_H */ /** @} */ diff --git a/sys/include/hashes/pbkdf2.h b/sys/include/hashes/pbkdf2.h index 8e8541c72c1c..5e814a9ffb6c 100644 --- a/sys/include/hashes/pbkdf2.h +++ b/sys/include/hashes/pbkdf2.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 sys_hashes_pbkdf2 PBKDF2 * @ingroup sys_hashes @@ -19,8 +22,6 @@ * @} */ -#ifndef HASHES_PBKDF2_H -#define HASHES_PBKDF2_H #include "hashes/sha256.h" @@ -55,5 +56,3 @@ void pbkdf2_sha256(const void *password, size_t password_len, #ifdef __cplusplus } #endif - -#endif /* HASHES_PBKDF2_H */ diff --git a/sys/include/hashes/psa/riot_hashes.h b/sys/include/hashes/psa/riot_hashes.h index 6e2bfd6e5aab..c68bf6c1ad79 100644 --- a/sys/include/hashes/psa/riot_hashes.h +++ b/sys/include/hashes/psa/riot_hashes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -16,8 +18,6 @@ * */ -#ifndef HASHES_PSA_RIOT_HASHES_H -#define HASHES_PSA_RIOT_HASHES_H #ifdef __cplusplus extern "C" { @@ -89,5 +89,4 @@ typedef keccak_state_t psa_hashes_sha3_ctx_t; } #endif -#endif /* HASHES_PSA_RIOT_HASHES_H */ /** @} */ diff --git a/sys/include/hashes/sha1.h b/sys/include/hashes/sha1.h index f157f4fb754f..04a0132dcc2a 100644 --- a/sys/include/hashes/sha1.h +++ b/sys/include/hashes/sha1.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha1 SHA-1 * @ingroup sys_hashes_unkeyed @@ -23,8 +25,6 @@ /* This code is public-domain - it is based on libcrypt * placed in the public domain by Wei Dai and other contributors. */ -#ifndef HASHES_SHA1_H -#define HASHES_SHA1_H #include @@ -117,5 +117,4 @@ void sha1_final_hmac(sha1_context *ctx, void *digest); } #endif -#endif /* HASHES_SHA1_H */ /** @} */ diff --git a/sys/include/hashes/sha224.h b/sys/include/hashes/sha224.h index 8f2d04953f1c..6dbffec01850 100644 --- a/sys/include/hashes/sha224.h +++ b/sys/include/hashes/sha224.h @@ -30,6 +30,8 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#pragma once + /** * @defgroup sys_hashes_sha224 SHA-224 * @ingroup sys_hashes_unkeyed @@ -46,8 +48,6 @@ * @author Peter Kietzmann */ -#ifndef HASHES_SHA224_H -#define HASHES_SHA224_H #include #include @@ -120,4 +120,3 @@ void sha224(const void *data, size_t len, void *digest); #endif /** @} */ -#endif /* HASHES_SHA224_H */ diff --git a/sys/include/hashes/sha256.h b/sys/include/hashes/sha256.h index b4a303926ea6..91657319a40d 100644 --- a/sys/include/hashes/sha256.h +++ b/sys/include/hashes/sha256.h @@ -29,6 +29,8 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#pragma once + /** * @defgroup sys_hashes_sha256 SHA-256 * @ingroup sys_hashes_unkeyed @@ -44,8 +46,6 @@ * @author Hermann Lelong */ -#ifndef HASHES_SHA256_H -#define HASHES_SHA256_H #include #include @@ -240,4 +240,3 @@ int sha256_chain_verify_element(void *element, #endif /** @} */ -#endif /* HASHES_SHA256_H */ diff --git a/sys/include/hashes/sha2xx_common.h b/sys/include/hashes/sha2xx_common.h index d685809fa580..528191f7f0e6 100644 --- a/sys/include/hashes/sha2xx_common.h +++ b/sys/include/hashes/sha2xx_common.h @@ -30,6 +30,8 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#pragma once + /** * @defgroup sys_hashes_sha2xx_common SHA-2xx common * @ingroup sys_hashes_unkeyed @@ -46,8 +48,6 @@ * @author Peter Kietzmann */ -#ifndef HASHES_SHA2XX_COMMON_H -#define HASHES_SHA2XX_COMMON_H #include #include @@ -99,4 +99,3 @@ void sha2xx_final(sha2xx_context_t *ctx, void *digest, size_t dig_len); #endif /** @} */ -#endif /* HASHES_SHA2XX_COMMON_H */ diff --git a/sys/include/hashes/sha384.h b/sys/include/hashes/sha384.h index d93eacffb69d..acba2b25b0ce 100644 --- a/sys/include/hashes/sha384.h +++ b/sys/include/hashes/sha384.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha384 SHA-384 * @ingroup sys_hashes_unkeyed @@ -18,8 +20,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA384_H -#define HASHES_SHA384_H #include #include @@ -93,4 +93,3 @@ void sha384(const void *data, size_t len, void *digest); #endif /** @} */ -#endif /* HASHES_SHA384_H */ diff --git a/sys/include/hashes/sha512.h b/sys/include/hashes/sha512.h index 0642412b1c3e..17a61bdec0a3 100644 --- a/sys/include/hashes/sha512.h +++ b/sys/include/hashes/sha512.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha512 SHA-512 * @ingroup sys_hashes_unkeyed @@ -18,8 +20,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_H -#define HASHES_SHA512_H #include #include @@ -94,4 +94,3 @@ void sha512(const void *data, size_t len, void *digest); #endif /** @} */ -#endif /* HASHES_SHA512_H */ diff --git a/sys/include/hashes/sha512_224.h b/sys/include/hashes/sha512_224.h index 8600269378a4..779e8ee0c44c 100644 --- a/sys/include/hashes/sha512_224.h +++ b/sys/include/hashes/sha512_224.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha512_224 SHA-512/224 * @ingroup sys_hashes_unkeyed @@ -18,8 +20,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_224_H -#define HASHES_SHA512_224_H #include #include @@ -93,4 +93,3 @@ void sha512_224(const void *data, size_t len, void *digest); #endif /** @} */ -#endif /* HASHES_SHA512_224_H */ diff --git a/sys/include/hashes/sha512_256.h b/sys/include/hashes/sha512_256.h index 0b9423e4b75a..74faacad48a7 100644 --- a/sys/include/hashes/sha512_256.h +++ b/sys/include/hashes/sha512_256.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha512_256 SHA-512/256 * @ingroup sys_hashes_unkeyed @@ -18,8 +20,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_256_H -#define HASHES_SHA512_256_H #include #include @@ -93,4 +93,3 @@ void sha512_256(const void *data, size_t len, void *digest); #endif /** @} */ -#endif /* HASHES_SHA512_256_H */ diff --git a/sys/include/hashes/sha512_common.h b/sys/include/hashes/sha512_common.h index 347b6cdfe38f..1335fec6669a 100644 --- a/sys/include/hashes/sha512_common.h +++ b/sys/include/hashes/sha512_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_hashes_sha512_common SHA-512 common * @ingroup sys_hashes_unkeyed @@ -18,8 +20,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_COMMON_H -#define HASHES_SHA512_COMMON_H #include #include @@ -71,4 +71,3 @@ void sha512_common_final(sha512_common_context_t *ctx, void *digest, size_t dig_ #endif /** @} */ -#endif /* HASHES_SHA512_COMMON_H */ diff --git a/sys/include/imath.h b/sys/include/imath.h index 1f2ff5fcb11a..98edf3606fc9 100644 --- a/sys/include/imath.h +++ b/sys/include/imath.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_imath imath: Integer Math functions * @ingroup sys @@ -18,8 +20,6 @@ * @{ */ -#ifndef IMATH_H -#define IMATH_H #include @@ -140,5 +140,4 @@ static inline uint32_t powi(unsigned x, unsigned y) } #endif -#endif /* IMATH_H */ /** @} */ diff --git a/sys/include/iolist.h b/sys/include/iolist.h index a5617b4e1fbf..595078caa71d 100644 --- a/sys/include/iolist.h +++ b/sys/include/iolist.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_iolist iolist scatter / gather IO * @ingroup sys @@ -21,8 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef IOLIST_H -#define IOLIST_H #include @@ -97,5 +97,4 @@ ssize_t iolist_to_buffer(const iolist_t *iolist, void *dst, size_t len); #ifdef __cplusplus } #endif -#endif /* IOLIST_H */ /** @} */ diff --git a/sys/include/isrpipe.h b/sys/include/isrpipe.h index bca5ac7aea41..8de89a1b1fbe 100644 --- a/sys/include/isrpipe.h +++ b/sys/include/isrpipe.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup isr_pipe ISR Pipe * @ingroup sys @@ -19,8 +21,6 @@ * */ -#ifndef ISRPIPE_H -#define ISRPIPE_H #include @@ -98,4 +98,3 @@ int isrpipe_read(isrpipe_t *isrpipe, uint8_t *buf, size_t count); } #endif /** @} */ -#endif /* ISRPIPE_H */ diff --git a/sys/include/isrpipe/read_timeout.h b/sys/include/isrpipe/read_timeout.h index 14e13b37003c..52013b5bdec2 100644 --- a/sys/include/isrpipe/read_timeout.h +++ b/sys/include/isrpipe/read_timeout.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup isr_pipe_read_timeout Read timeouts with ISR pipe * @ingroup isr_pipe @@ -19,8 +21,6 @@ * */ -#ifndef ISRPIPE_READ_TIMEOUT_H -#define ISRPIPE_READ_TIMEOUT_H #include "isrpipe.h" @@ -72,4 +72,3 @@ int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uin } #endif /** @} */ -#endif /* ISRPIPE_READ_TIMEOUT_H */ diff --git a/sys/include/luid.h b/sys/include/luid.h index 86df1623611e..03cac637d07e 100644 --- a/sys/include/luid.h +++ b/sys/include/luid.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_luid Locally Unique ID Generator * @ingroup sys @@ -50,8 +52,6 @@ * @author Hauke Petersen */ -#ifndef LUID_H -#define LUID_H #include @@ -199,5 +199,4 @@ void luid_base(void *buf, size_t len); } #endif -#endif /* LUID_H */ /** @} */ diff --git a/sys/include/malloc_monitor.h b/sys/include/malloc_monitor.h index 28c9117ea9ae..f878576178c5 100644 --- a/sys/include/malloc_monitor.h +++ b/sys/include/malloc_monitor.h @@ -5,13 +5,14 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup sys_malloc_monitor * @{ */ -#ifndef MALLOC_MONITOR_H -#define MALLOC_MONITOR_H #include #include @@ -52,7 +53,6 @@ void malloc_monitor_reset_high_watermark(void); } #endif -#endif /* MALLOC_MONITOR_H */ /** * @} diff --git a/sys/include/malloc_monitor_internal.h b/sys/include/malloc_monitor_internal.h index 1a123cb38ec4..3602b3eae434 100644 --- a/sys/include/malloc_monitor_internal.h +++ b/sys/include/malloc_monitor_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 + /** * @defgroup sys_malloc_monitor_internals Heap Memory Usage Monitor internals * @ingroup sys_malloc_monitor @@ -14,8 +17,6 @@ * @author Mikolai Gütschow */ -#ifndef MALLOC_MONITOR_INTERNAL_H -#define MALLOC_MONITOR_INTERNAL_H #include #include @@ -66,7 +67,6 @@ void malloc_monitor_mv(void *ptr_old, void *ptr_new, size_t size_new, uinttxtptr } #endif -#endif /* MALLOC_MONITOR_INTERNAL_H */ /** * @} diff --git a/sys/include/matstat.h b/sys/include/matstat.h index 10f6d4643aae..dd6fb78dd90c 100644 --- a/sys/include/matstat.h +++ b/sys/include/matstat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_matstat * @@ -29,8 +31,6 @@ * @author Joakim Nohlgård */ -#ifndef MATSTAT_H -#define MATSTAT_H #include @@ -113,6 +113,5 @@ void matstat_merge(matstat_state_t *dest, const matstat_state_t *src); } #endif -#endif /* MATSTAT_H */ /** @} */ diff --git a/sys/include/memarray.h b/sys/include/memarray.h index c8078eb702c0..2fcfe0dfdf20 100644 --- a/sys/include/memarray.h +++ b/sys/include/memarray.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_memarray memory array allocator * @ingroup sys_memory_management @@ -17,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef MEMARRAY_H -#define MEMARRAY_H #include #include @@ -164,7 +165,6 @@ size_t memarray_available(memarray_t *mem); } #endif -#endif /* MEMARRAY_H */ /** * @} diff --git a/sys/include/mineplex.h b/sys/include/mineplex.h index 4060ed1a2729..8e0afce0fb0e 100644 --- a/sys/include/mineplex.h +++ b/sys/include/mineplex.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_mineplex 5x5 Font 'Mineplex' * @ingroup sys @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef MINEPLEX_H -#define MINEPLEX_H #include @@ -55,5 +55,4 @@ const uint8_t *mineplex_char(char c); } #endif -#endif /* MINEPLEX_H */ /** @} */ diff --git a/sys/include/net/af.h b/sys/include/net/af.h index be4a58fe7e1c..331b5460d94a 100644 --- a/sys/include/net/af.h +++ b/sys/include/net/af.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_af UNIX address families * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_AF_H -#define NET_AF_H #ifdef __cplusplus extern "C" { @@ -48,5 +48,4 @@ typedef enum { } #endif -#endif /* NET_AF_H */ /** @} */ diff --git a/sys/include/net/arp.h b/sys/include/net/arp.h index 844e4fca9b43..ee5b3b1ad9d5 100644 --- a/sys/include/net/arp.h +++ b/sys/include/net/arp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_arp Address resolution protocol (ARP) * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_ARP_H -#define NET_ARP_H #ifdef __cplusplus extern "C" { @@ -40,5 +40,4 @@ extern "C" { } #endif -#endif /* NET_ARP_H */ /** @} */ diff --git a/sys/include/net/asymcute.h b/sys/include/net/asymcute.h index 3da576ffc6cf..54eea24b93f7 100644 --- a/sys/include/net/asymcute.h +++ b/sys/include/net/asymcute.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_asymcute MQTT-SN Client (Asymcute) * @ingroup net @@ -41,8 +43,6 @@ * @author Hauke Petersen */ -#ifndef NET_ASYMCUTE_H -#define NET_ASYMCUTE_H #include #include @@ -574,5 +574,4 @@ int asymcute_unsubscribe(asymcute_con_t *con, asymcute_req_t *req, } #endif -#endif /* NET_ASYMCUTE_H */ /** @} */ diff --git a/sys/include/net/ble.h b/sys/include/net/ble.h index 630514169867..4b41889ef9ca 100644 --- a/sys/include/net/ble.h +++ b/sys/include/net/ble.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_defs Generic BLE defines * @ingroup ble @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLE_H -#define NET_BLE_H #ifdef __cplusplus extern "C" { @@ -496,5 +496,4 @@ extern "C" { } #endif -#endif /* NET_BLE_H */ /** @} */ diff --git a/sys/include/net/bluetil/ad.h b/sys/include/net/bluetil/ad.h index 55aa005e740e..6d5f87e24703 100644 --- a/sys/include/net/bluetil/ad.h +++ b/sys/include/net/bluetil/ad.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_bluetil_ad BLE Advertising Data (AD) Processing * @ingroup ble_bluetil @@ -24,8 +26,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLUETIL_AD_H -#define NET_BLUETIL_AD_H #include #include @@ -205,5 +205,4 @@ static inline int bluetil_ad_init_with_flags(bluetil_ad_t *ad, } #endif -#endif /* NET_BLUETIL_AD_H */ /** @} */ diff --git a/sys/include/net/bluetil/addr.h b/sys/include/net/bluetil/addr.h index 2d998863b828..8b50109ad616 100644 --- a/sys/include/net/bluetil/addr.h +++ b/sys/include/net/bluetil/addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_bluetil_addr BLE Address Helper * @ingroup ble_bluetil @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLUETIL_ADDR_H -#define NET_BLUETIL_ADDR_H #include @@ -112,5 +112,4 @@ void bluetil_addr_ipv6_l2ll_print(const uint8_t *addr); } #endif -#endif /* NET_BLUETIL_ADDR_H */ /** @} */ diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index 6b9323524a7b..2a5642b53a1c 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_coap CoAP defines * @ingroup net @@ -19,8 +21,6 @@ * */ -#ifndef NET_COAP_H -#define NET_COAP_H #ifdef __cplusplus extern "C" { @@ -631,5 +631,4 @@ typedef enum { } #endif -#endif /* NET_COAP_H */ /** @} */ diff --git a/sys/include/net/cord/common.h b/sys/include/net/cord/common.h index 5248b62bacfb..ac6387803f75 100644 --- a/sys/include/net/cord/common.h +++ b/sys/include/net/cord/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_common CoRE RD Common * @ingroup net_cord @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_COMMON_H -#define NET_CORD_COMMON_H #include "net/cord/config.h" @@ -64,5 +64,4 @@ int cord_common_add_qstring(coap_pkt_t *pkt); } #endif -#endif /* NET_CORD_COMMON_H */ /** @} */ diff --git a/sys/include/net/cord/config.h b/sys/include/net/cord/config.h index a2d5e5ccdf3c..8a7c3e5b98a8 100644 --- a/sys/include/net/cord/config.h +++ b/sys/include/net/cord/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_config CoRE RD Configuration * @ingroup net_cord @@ -20,8 +22,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_CONFIG_H -#define NET_CORD_CONFIG_H #ifdef __cplusplus extern "C" { @@ -110,5 +110,4 @@ extern "C" { } #endif -#endif /* NET_CORD_CONFIG_H */ /** @} */ diff --git a/sys/include/net/cord/ep.h b/sys/include/net/cord/ep.h index aedaf60f7a5e..31369246f9ec 100644 --- a/sys/include/net/cord/ep.h +++ b/sys/include/net/cord/ep.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_ep CoRE RD Endpoint * @ingroup net_cord @@ -31,8 +33,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EP_H -#define NET_CORD_EP_H #include "net/sock/udp.h" @@ -115,5 +115,4 @@ void cord_ep_dump_status(void); } #endif -#endif /* NET_CORD_EP_H */ /** @} */ diff --git a/sys/include/net/cord/ep_standalone.h b/sys/include/net/cord/ep_standalone.h index e6d52861ead0..622e4a51fd33 100644 --- a/sys/include/net/cord/ep_standalone.h +++ b/sys/include/net/cord/ep_standalone.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_ep_standalone CoRE RD Endpoint Standalone Extension * @ingroup net_cord_ep @@ -23,8 +25,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EP_STANDALONE_H -#define NET_CORD_EP_STANDALONE_H #ifdef __cplusplus extern "C" { @@ -84,5 +84,4 @@ void cord_ep_standalone_signal(bool connected); } #endif -#endif /* NET_CORD_EP_STANDALONE_H */ /** @} */ diff --git a/sys/include/net/cord/epsim.h b/sys/include/net/cord/epsim.h index 4b14a9e69535..38b6a6da99eb 100644 --- a/sys/include/net/cord/epsim.h +++ b/sys/include/net/cord/epsim.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_epsim CoRE RD Simple Registration Endpoint * @ingroup net_cord @@ -25,8 +27,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EPSIM_H -#define NET_CORD_EPSIM_H #include "net/sock/udp.h" @@ -71,5 +71,4 @@ int cord_epsim_state(void); } #endif -#endif /* NET_CORD_EPSIM_H */ /** @} */ diff --git a/sys/include/net/cord/lc.h b/sys/include/net/cord/lc.h index 9588a56f25d3..a309da22a230 100644 --- a/sys/include/net/cord/lc.h +++ b/sys/include/net/cord/lc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_cord_lc CoRE RD Lookup Client * @ingroup net_cord @@ -46,8 +48,6 @@ * @author Aiman Ismail */ -#ifndef NET_CORD_LC_H -#define NET_CORD_LC_H #include "net/sock/udp.h" #include "net/nanocoap.h" @@ -242,5 +242,4 @@ static inline ssize_t cord_lc_ep(cord_lc_rd_t *rd, cord_lc_ep_t *endpoint, } #endif -#endif /* NET_CORD_LC_H */ /** @} */ diff --git a/sys/include/net/credman.h b/sys/include/net/credman.h index 91f988d32832..891b9128a18a 100644 --- a/sys/include/net/credman.h +++ b/sys/include/net/credman.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_credman (D)TLS Credential Manager * @ingroup net net_dtls @@ -24,8 +26,6 @@ * @author Aiman Ismail */ -#ifndef NET_CREDMAN_H -#define NET_CREDMAN_H #include #include @@ -274,5 +274,4 @@ void credman_reset(void); } #endif -#endif /* NET_CREDMAN_H */ /** @} */ diff --git a/sys/include/net/csma_sender.h b/sys/include/net/csma_sender.h index 7bf576351930..c3abdd2cde64 100644 --- a/sys/include/net/csma_sender.h +++ b/sys/include/net/csma_sender.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_csma_sender CSMA/CA helper * @ingroup net @@ -22,8 +24,6 @@ * @author Martine Lenders */ -#ifndef NET_CSMA_SENDER_H -#define NET_CSMA_SENDER_H #include @@ -142,6 +142,5 @@ int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist); } #endif -#endif /* NET_CSMA_SENDER_H */ /** @} */ diff --git a/sys/include/net/dhcpv6.h b/sys/include/net/dhcpv6.h index ec23e7db7943..0d29a4c1ee49 100644 --- a/sys/include/net/dhcpv6.h +++ b/sys/include/net/dhcpv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dhcpv6 Dynamic Host Configuration Protocol for IPv6 (DHCPv6) * @ingroup net_ipv6 @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_H -#define NET_DHCPV6_H #ifdef __cplusplus extern "C" { @@ -109,5 +109,4 @@ extern "C" { } #endif -#endif /* NET_DHCPV6_H */ /** @} */ diff --git a/sys/include/net/dhcpv6/client.h b/sys/include/net/dhcpv6/client.h index 9a2a82e8c761..a942fd72105c 100644 --- a/sys/include/net/dhcpv6/client.h +++ b/sys/include/net/dhcpv6/client.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dhcpv6_client DHCPv6 client * @ingroup net_dhcpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_CLIENT_H -#define NET_DHCPV6_CLIENT_H #include "byteorder.h" #include "event.h" @@ -317,5 +317,4 @@ uint8_t dhcpv6_client_get_conf_mode(void); } #endif -#endif /* NET_DHCPV6_CLIENT_H */ /** @} */ diff --git a/sys/include/net/dhcpv6/relay.h b/sys/include/net/dhcpv6/relay.h index 7c66e72e7f8d..708d24e6d2ce 100644 --- a/sys/include/net/dhcpv6/relay.h +++ b/sys/include/net/dhcpv6/relay.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dhcpv6_relay DHCPv6 relay agent * @ingroup net_dhcpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_RELAY_H -#define NET_DHCPV6_RELAY_H #include @@ -75,5 +75,4 @@ void dhcpv6_relay_init(event_queue_t *event_queue, uint16_t listen_netif, } #endif -#endif /* NET_DHCPV6_RELAY_H */ /** @} */ diff --git a/sys/include/net/dns.h b/sys/include/net/dns.h index bebaf8b62f39..9d50a40cc722 100644 --- a/sys/include/net/dns.h +++ b/sys/include/net/dns.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dns DNS defines * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DNS_H -#define NET_DNS_H #include "modules.h" #include "net/sock/dns.h" @@ -100,5 +100,4 @@ static inline int dns_query(const char *domain_name, void *addr_out, int family) } #endif -#endif /* NET_DNS_H */ /** @} */ diff --git a/sys/include/net/dns/cache.h b/sys/include/net/dns/cache.h index 91a43ff28feb..15c7dbf0abd3 100644 --- a/sys/include/net/dns/cache.h +++ b/sys/include/net/dns/cache.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dns_cache DNS cache * @ingroup net_dns @@ -30,8 +32,6 @@ * @author Benjamin Valentin */ -#ifndef NET_DNS_CACHE_H -#define NET_DNS_CACHE_H #include @@ -107,5 +107,4 @@ static inline void dns_cache_add(const char *domain_name, const void *addr, } #endif -#endif /* NET_DNS_CACHE_H */ /** @} */ diff --git a/sys/include/net/dns/msg.h b/sys/include/net/dns/msg.h index 19f222239dee..3c3f678be3dd 100644 --- a/sys/include/net/dns/msg.h +++ b/sys/include/net/dns/msg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dns_msg DNS message parser and composer * @ingroup net_dns @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DNS_MSG_H -#define NET_DNS_MSG_H #include #include @@ -117,5 +117,4 @@ int dns_msg_parse_reply(const uint8_t *buf, size_t len, int family, } #endif -#endif /* NET_DNS_MSG_H */ /** @} */ diff --git a/sys/include/net/dns_mock.h b/sys/include/net/dns_mock.h index 58a251f019c2..778b0b244c1d 100644 --- a/sys/include/net/dns_mock.h +++ b/sys/include/net/dns_mock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dns_mock DNS defines * @ingroup net @@ -17,8 +19,6 @@ * * @author Hendrik van Essen */ -#ifndef NET_DNS_MOCK_H -#define NET_DNS_MOCK_H #ifdef __cplusplus extern "C" { @@ -52,5 +52,4 @@ static const ipv6_addr_t sock_dns_mock_example_com_addr_ipv6 = { { } #endif -#endif /* NET_DNS_MOCK_H */ /** @} */ diff --git a/sys/include/net/dsm.h b/sys/include/net/dsm.h index 4e75541ace82..e8d6499afb41 100644 --- a/sys/include/net/dsm.h +++ b/sys/include/net/dsm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dsm DTLS Session Management (DSM) * @ingroup net net_dtls @@ -27,8 +29,6 @@ * @author János Brodbeck */ -#ifndef NET_DSM_H -#define NET_DSM_H #include @@ -121,5 +121,4 @@ ssize_t dsm_get_least_recently_used_session(sock_dtls_t *sock, sock_dtls_session } #endif -#endif /* NET_DSM_H */ /** @} */ diff --git a/sys/include/net/dtls.h b/sys/include/net/dtls.h index 1e5571dacebc..c0076c040ca6 100644 --- a/sys/include/net/dtls.h +++ b/sys/include/net/dtls.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dtls DTLS * @ingroup net @@ -33,8 +35,6 @@ * * @author Aiman Ismail */ -#ifndef NET_DTLS_H -#define NET_DTLS_H #include "modules.h" @@ -57,5 +57,4 @@ extern "C" { } #endif -#endif /* NET_DTLS_H */ /** @} */ diff --git a/sys/include/net/eddystone.h b/sys/include/net/eddystone.h index 31c8fd280f22..cbec3327088e 100644 --- a/sys/include/net/eddystone.h +++ b/sys/include/net/eddystone.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_eddystone Eddystone * @ingroup net @@ -20,8 +22,6 @@ * @author Hauke Petersen */ -#ifndef NET_EDDYSTONE_H -#define NET_EDDYSTONE_H #ifdef __cplusplus extern "C" { @@ -59,5 +59,4 @@ extern "C" { } #endif -#endif /* NET_EDDYSTONE_H */ /** @} */ diff --git a/sys/include/net/emcute.h b/sys/include/net/emcute.h index 6b9eaabed99d..9db30d64ffeb 100644 --- a/sys/include/net/emcute.h +++ b/sys/include/net/emcute.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_emcute MQTT-SN Client (emCute) * @ingroup net @@ -83,8 +85,6 @@ * @author Hauke Petersen */ -#ifndef NET_EMCUTE_H -#define NET_EMCUTE_H #include #include @@ -389,5 +389,4 @@ const char *emcute_type_str(uint8_t type); } #endif -#endif /* NET_EMCUTE_H */ /** @} */ diff --git a/sys/include/net/ethernet.h b/sys/include/net/ethernet.h index 753f67450a43..aaea68b6e51a 100644 --- a/sys/include/net/ethernet.h +++ b/sys/include/net/ethernet.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_ethernet Ethernet * @ingroup net @@ -18,8 +20,6 @@ * @author Martine Lenders */ -#ifndef NET_ETHERNET_H -#define NET_ETHERNET_H #include @@ -50,7 +50,6 @@ extern "C" { } #endif -#endif /* NET_ETHERNET_H */ /** * @} */ diff --git a/sys/include/net/ethernet/hdr.h b/sys/include/net/ethernet/hdr.h index 6f4bf4951af9..9399cc6c3ce6 100644 --- a/sys/include/net/ethernet/hdr.h +++ b/sys/include/net/ethernet/hdr.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_ethernet_hdr Ethernet header * @ingroup net_ethernet @@ -18,8 +20,6 @@ * @author Martine Lenders */ -#ifndef NET_ETHERNET_HDR_H -#define NET_ETHERNET_HDR_H #include @@ -50,7 +50,6 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_ETHERNET_HDR_H */ /** * @} */ diff --git a/sys/include/net/ethertype.h b/sys/include/net/ethertype.h index 5f132acc35b4..ff69a4e17673 100644 --- a/sys/include/net/ethertype.h +++ b/sys/include/net/ethertype.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_ethertype Ether types * @ingroup net @@ -22,8 +24,6 @@ * @author Martine Lenders */ -#ifndef NET_ETHERTYPE_H -#define NET_ETHERTYPE_H #ifdef __cplusplus extern "C" { @@ -60,7 +60,6 @@ extern "C" { } #endif -#endif /* NET_ETHERTYPE_H */ /** * @} */ diff --git a/sys/include/net/eui48.h b/sys/include/net/eui48.h index 50dd310afc81..59e086e456e9 100644 --- a/sys/include/net/eui48.h +++ b/sys/include/net/eui48.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_eui48 IEEE EUI-48 identifier * @ingroup net @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_EUI48_H -#define NET_EUI48_H #include @@ -160,5 +160,4 @@ static inline void eui48_from_ipv6_iid(eui48_t *addr, const eui64_t *iid) } #endif -#endif /* NET_EUI48_H */ /** @} */ diff --git a/sys/include/net/eui64.h b/sys/include/net/eui64.h index 34c3cee6834d..b7423ea53451 100644 --- a/sys/include/net/eui64.h +++ b/sys/include/net/eui64.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_eui64 IEEE EUI-64 identifier * @ingroup net @@ -21,8 +23,6 @@ * @author Martine Lenders * @author Oliver Hahm */ -#ifndef NET_EUI64_H -#define NET_EUI64_H #include #include "byteorder.h" @@ -88,5 +88,4 @@ static inline void eui64_clear_group(eui64_t *addr) } #endif -#endif /* NET_EUI64_H */ /** @} */ diff --git a/sys/include/net/eui_provider.h b/sys/include/net/eui_provider.h index a85640681553..2ba7ed36e384 100644 --- a/sys/include/net/eui_provider.h +++ b/sys/include/net/eui_provider.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_eui_provider IEEE EUI-48/64 provider * @ingroup net @@ -95,8 +97,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_EUI_PROVIDER_H -#define NET_EUI_PROVIDER_H #include "net/eui48.h" #include "net/eui64.h" @@ -201,5 +201,4 @@ static inline void eui_short_from_eui64(eui64_t *addr_long, } #endif -#endif /* NET_EUI_PROVIDER_H */ /** @} */ diff --git a/sys/include/net/fib.h b/sys/include/net/fib.h index 27898eb7d8f2..9927c270314a 100644 --- a/sys/include/net/fib.h +++ b/sys/include/net/fib.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_fib Forwarding Information Base (FIB) * @ingroup net @@ -24,8 +26,6 @@ * @author Oliver Hahm */ -#ifndef NET_FIB_H -#define NET_FIB_H #include @@ -514,5 +514,4 @@ int fib_devel_get_lifetime(fib_table_t *table, uint64_t *lifetime, uint8_t *dst, } #endif -#endif /* NET_FIB_H */ /** @} */ diff --git a/sys/include/net/fib/table.h b/sys/include/net/fib/table.h index 9cbe50dbe031..e2217036922e 100644 --- a/sys/include/net/fib/table.h +++ b/sys/include/net/fib/table.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_fib * @{ @@ -16,8 +18,6 @@ * @author Martin Landsmann */ -#ifndef NET_FIB_TABLE_H -#define NET_FIB_TABLE_H #include @@ -139,5 +139,4 @@ typedef struct { } #endif -#endif /* NET_FIB_TABLE_H */ /** @} */ diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index b55fbaf646b8..861c3fb613b9 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gcoap GCoAP * @ingroup net @@ -394,8 +396,6 @@ * @author Hauke Petersen */ -#ifndef NET_GCOAP_H -#define NET_GCOAP_H #include @@ -1209,5 +1209,4 @@ static inline coap_hdr_t *gcoap_request_memo_get_hdr(const gcoap_request_memo_t } #endif -#endif /* NET_GCOAP_H */ /** @} */ diff --git a/sys/include/net/gcoap/dns.h b/sys/include/net/gcoap/dns.h index 30cd9f1d621c..749061ed43f0 100644 --- a/sys/include/net/gcoap/dns.h +++ b/sys/include/net/gcoap/dns.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gcoap_dns DNS over CoAP client implementation * @ingroup net_gcoap @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef NET_GCOAP_DNS_H -#define NET_GCOAP_DNS_H #include @@ -215,5 +215,4 @@ ssize_t gcoap_dns_server_proxy_get(char *proxy, size_t proxy_len); } #endif -#endif /* NET_GCOAP_DNS_H */ /** @} */ diff --git a/sys/include/net/gcoap/forward_proxy.h b/sys/include/net/gcoap/forward_proxy.h index dc59848d3035..7ebbb3c0d750 100644 --- a/sys/include/net/gcoap/forward_proxy.h +++ b/sys/include/net/gcoap/forward_proxy.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gcoap_forward_proxy GCoAP Forward Proxy * @ingroup net_gcoap @@ -23,8 +25,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GCOAP_FORWARD_PROXY_H -#define NET_GCOAP_FORWARD_PROXY_H #include #include @@ -86,7 +86,6 @@ void gcoap_forward_proxy_find_req_memo(gcoap_request_memo_t **memo_ptr, } #endif -#endif /* NET_GCOAP_FORWARD_PROXY_H */ /** * @} */ diff --git a/sys/include/net/gnrc.h b/sys/include/net/gnrc.h index 77afe734f144..36e69290155d 100644 --- a/sys/include/net/gnrc.h +++ b/sys/include/net/gnrc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc Generic (GNRC) network stack * @ingroup net @@ -284,8 +286,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_H -#define NET_GNRC_H #include "net/netopt.h" #include "net/gnrc/netapi.h" @@ -306,5 +306,4 @@ extern "C" { } #endif -#endif /* NET_GNRC_H */ /** @} */ diff --git a/sys/include/net/gnrc/dhcpv6/client/simple_pd.h b/sys/include/net/gnrc/dhcpv6/client/simple_pd.h index b1a2a784e876..aaf470efa7bc 100644 --- a/sys/include/net/gnrc/dhcpv6/client/simple_pd.h +++ b/sys/include/net/gnrc/dhcpv6/client/simple_pd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_dhcpv6_client_simple_pd gnrc_dhcpv6_client_simple_pd: DHCPv6 client for * simple prefix delegation @@ -19,8 +21,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H -#define NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H #ifdef __cplusplus extern "C" { @@ -91,5 +91,4 @@ void gnrc_dhcpv6_client_simple_pd_init(void); } #endif -#endif /* NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H */ /** @} */ diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 4098d36874bd..fe29516d94a6 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_gomach GoMacH * @ingroup net_gnrc @@ -39,8 +41,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_GOMACH_H -#define NET_GNRC_GOMACH_GOMACH_H #include "periph/rtt.h" #include "net/gnrc/netif.h" @@ -374,5 +374,4 @@ int gnrc_netif_gomach_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_GOMACH_GOMACH_H */ /** @} */ diff --git a/sys/include/net/gnrc/gomach/hdr.h b/sys/include/net/gnrc/gomach/hdr.h index 1113b6acad95..2485471b17da 100644 --- a/sys/include/net/gnrc/gomach/hdr.h +++ b/sys/include/net/gnrc/gomach/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_gomach * @{ @@ -16,8 +18,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_HDR_H -#define NET_GNRC_GOMACH_HDR_H #include #include @@ -138,5 +138,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_GNRC_GOMACH_HDR_H */ /** @} */ diff --git a/sys/include/net/gnrc/gomach/timeout.h b/sys/include/net/gnrc/gomach/timeout.h index 5c2040bc8d2e..0aa0d0ea7121 100644 --- a/sys/include/net/gnrc/gomach/timeout.h +++ b/sys/include/net/gnrc/gomach/timeout.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_gomach * @{ @@ -16,8 +18,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_TIMEOUT_H -#define NET_GNRC_GOMACH_TIMEOUT_H #include #include @@ -96,5 +96,4 @@ static inline void gnrc_gomach_timeout_make_expire(gnrc_gomach_timeout_t *timeou } #endif -#endif /* NET_GNRC_GOMACH_TIMEOUT_H */ /** @} */ diff --git a/sys/include/net/gnrc/gomach/types.h b/sys/include/net/gnrc/gomach/types.h index 8ed411d5fbc9..a68f1e9afb4e 100644 --- a/sys/include/net/gnrc/gomach/types.h +++ b/sys/include/net/gnrc/gomach/types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_gomach * @{ @@ -16,8 +18,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_TYPES_H -#define NET_GNRC_GOMACH_TYPES_H #include #include @@ -310,5 +310,4 @@ typedef struct gomach { } #endif -#endif /* NET_GNRC_GOMACH_TYPES_H */ /** @} */ diff --git a/sys/include/net/gnrc/icmpv6.h b/sys/include/net/gnrc/icmpv6.h index 699fb3e0aca3..e1ab7dfb2120 100644 --- a/sys/include/net/gnrc/icmpv6.h +++ b/sys/include/net/gnrc/icmpv6.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gnrc_icmpv6 ICMPv6 * @ingroup net_gnrc_ipv6 @@ -24,8 +26,6 @@ * @todo build error messages */ -#ifndef NET_GNRC_ICMPV6_H -#define NET_GNRC_ICMPV6_H #include "net/icmpv6.h" #include "net/gnrc/netif.h" @@ -79,7 +79,6 @@ int gnrc_icmpv6_calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr); } #endif -#endif /* NET_GNRC_ICMPV6_H */ /** * @} */ diff --git a/sys/include/net/gnrc/icmpv6/echo.h b/sys/include/net/gnrc/icmpv6/echo.h index b84c2ae3aa97..f5a5dd043c2f 100644 --- a/sys/include/net/gnrc/icmpv6/echo.h +++ b/sys/include/net/gnrc/icmpv6/echo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_icmpv6_echo ICMPv6 echo messages * @ingroup net_gnrc_icmpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_ICMPV6_ECHO_H -#define NET_GNRC_ICMPV6_ECHO_H #include @@ -107,5 +107,4 @@ int gnrc_icmpv6_echo_rsp_handle(gnrc_pktsnip_t *pkt, size_t len, } #endif -#endif /* NET_GNRC_ICMPV6_ECHO_H */ /** @} */ diff --git a/sys/include/net/gnrc/icmpv6/error.h b/sys/include/net/gnrc/icmpv6/error.h index e1aad9f3b78e..bb4ecce0c7d4 100644 --- a/sys/include/net/gnrc/icmpv6/error.h +++ b/sys/include/net/gnrc/icmpv6/error.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_icmpv6_error ICMPv6 error messages * @ingroup net_gnrc_icmpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_ICMPV6_ERROR_H -#define NET_GNRC_ICMPV6_ERROR_H #include #include @@ -106,5 +106,4 @@ void gnrc_icmpv6_error_param_prob_send(uint8_t code, void *ptr, } #endif -#endif /* NET_GNRC_ICMPV6_ERROR_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6.h b/sys/include/net/gnrc/ipv6.h index 00720ae3827c..33b244d9018e 100644 --- a/sys/include/net/gnrc/ipv6.h +++ b/sys/include/net/gnrc/ipv6.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6 IPv6 * @ingroup net_gnrc @@ -95,8 +97,6 @@ * @author Oliver Hahm */ -#ifndef NET_GNRC_IPV6_H -#define NET_GNRC_IPV6_H #include "sched.h" #include "thread.h" @@ -274,7 +274,6 @@ ipv6_hdr_t *gnrc_ipv6_get_header(gnrc_pktsnip_t *pkt); } #endif -#endif /* NET_GNRC_IPV6_H */ /** * @} */ diff --git a/sys/include/net/gnrc/ipv6/blacklist.h b/sys/include/net/gnrc/ipv6/blacklist.h index ce58155ee535..796eddeff415 100644 --- a/sys/include/net/gnrc/ipv6/blacklist.h +++ b/sys/include/net/gnrc/ipv6/blacklist.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_blacklist IPv6 address blacklist * @ingroup net_gnrc_ipv6 @@ -19,8 +21,6 @@ * @author Martine Lenders * @author Martin Landsmann */ -#ifndef NET_GNRC_IPV6_BLACKLIST_H -#define NET_GNRC_IPV6_BLACKLIST_H #include @@ -82,5 +82,4 @@ void gnrc_ipv6_blacklist_print(void); } #endif -#endif /* NET_GNRC_IPV6_BLACKLIST_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/ext.h b/sys/include/net/gnrc/ipv6/ext.h index 6280327b6727..0f57834a6c06 100644 --- a/sys/include/net/gnrc/ipv6/ext.h +++ b/sys/include/net/gnrc/ipv6/ext.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_ext IPv6 extension headers. * @ingroup net_gnrc_ipv6 @@ -19,8 +21,6 @@ * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_H -#define NET_GNRC_IPV6_EXT_H #include #include @@ -192,7 +192,6 @@ gnrc_pktsnip_t *gnrc_ipv6_ext_process_all(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_IPV6_EXT_H */ /** * @} */ diff --git a/sys/include/net/gnrc/ipv6/ext/frag.h b/sys/include/net/gnrc/ipv6/ext/frag.h index ead4887892e1..dbcc292c2faa 100644 --- a/sys/include/net/gnrc/ipv6/ext/frag.h +++ b/sys/include/net/gnrc/ipv6/ext/frag.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_ext_frag Support for IPv6 fragmentation extension * @ingroup net_gnrc_ipv6_ext @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_FRAG_H -#define NET_GNRC_IPV6_EXT_FRAG_H #include #include @@ -211,5 +211,4 @@ gnrc_ipv6_ext_frag_stats_t *gnrc_ipv6_ext_frag_stats(void); } #endif -#endif /* NET_GNRC_IPV6_EXT_FRAG_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/ext/opt.h b/sys/include/net/gnrc/ipv6/ext/opt.h index 02fbcc2c43e9..8fa110822cca 100644 --- a/sys/include/net/gnrc/ipv6/ext/opt.h +++ b/sys/include/net/gnrc/ipv6/ext/opt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_ext_opt Support for IPv6 option extension headers * @ingroup net_gnrc_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_OPT_H -#define NET_GNRC_IPV6_EXT_OPT_H #include @@ -56,5 +56,4 @@ gnrc_pktsnip_t *gnrc_ipv6_ext_opt_process(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_IPV6_EXT_OPT_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/ext/rh.h b/sys/include/net/gnrc/ipv6/ext/rh.h index 89d9a25fd3da..78ad4e3ebe7c 100644 --- a/sys/include/net/gnrc/ipv6/ext/rh.h +++ b/sys/include/net/gnrc/ipv6/ext/rh.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_ext_rh Support for IPv6 routing header extension * @ingroup net_gnrc_ipv6_ext @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_RH_H -#define NET_GNRC_IPV6_EXT_RH_H #include "net/gnrc/pkt.h" @@ -67,5 +67,4 @@ int gnrc_ipv6_ext_rh_process(gnrc_pktsnip_t *pkt); } #endif -#endif /* NET_GNRC_IPV6_EXT_RH_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/hdr.h b/sys/include/net/gnrc/ipv6/hdr.h index daf82d334702..7989661a81b4 100644 --- a/sys/include/net/gnrc/ipv6/hdr.h +++ b/sys/include/net/gnrc/ipv6/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_hdr IPv6 header definitions * @ingroup net_gnrc_ipv6 @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_HDR_H -#define NET_GNRC_IPV6_HDR_H #include @@ -50,5 +50,4 @@ gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t * } #endif -#endif /* NET_GNRC_IPV6_HDR_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib.h b/sys/include/net/gnrc/ipv6/nib.h index 2fbcf9ee67ba..92be21ebd023 100644 --- a/sys/include/net/gnrc/ipv6/nib.h +++ b/sys/include/net/gnrc/ipv6/nib.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib Neighbor Information Base for IPv6 * @ingroup net_gnrc_ipv6 @@ -22,8 +24,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_H -#define NET_GNRC_IPV6_NIB_H #include "net/gnrc/ipv6/nib/abr.h" #include "net/gnrc/ipv6/nib/ft.h" @@ -433,5 +433,4 @@ void gnrc_ipv6_nib_change_rtr_adv_iface(gnrc_netif_t *netif, bool enable); } #endif -#endif /* NET_GNRC_IPV6_NIB_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib/abr.h b/sys/include/net/gnrc/ipv6/nib/abr.h index fbba10b4ea72..73be590008ca 100644 --- a/sys/include/net/gnrc/ipv6/nib/abr.h +++ b/sys/include/net/gnrc/ipv6/nib/abr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib_abr Authoritative border router list * @ingroup net_gnrc_ipv6_nib @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_ABR_H -#define NET_GNRC_IPV6_NIB_ABR_H #include "modules.h" @@ -140,5 +140,4 @@ void gnrc_ipv6_nib_abr_print(gnrc_ipv6_nib_abr_t *abr); } #endif -#endif /* NET_GNRC_IPV6_NIB_ABR_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib/conf.h b/sys/include/net/gnrc/ipv6/nib/conf.h index 08320a69540e..4bcebcebc690 100644 --- a/sys/include/net/gnrc/ipv6/nib/conf.h +++ b/sys/include/net/gnrc/ipv6/nib/conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib_conf GNRC IPv6 NIB compile configurations * @ingroup net_gnrc_ipv6_nib @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_CONF_H -#define NET_GNRC_IPV6_NIB_CONF_H #include "modules.h" @@ -324,5 +324,4 @@ extern "C" { } #endif -#endif /* NET_GNRC_IPV6_NIB_CONF_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib/ft.h b/sys/include/net/gnrc/ipv6/nib/ft.h index 0d8182ce5809..883f3370463a 100644 --- a/sys/include/net/gnrc/ipv6/nib/ft.h +++ b/sys/include/net/gnrc/ipv6/nib/ft.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib_ft Forwarding table * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_FT_H -#define NET_GNRC_IPV6_NIB_FT_H #include @@ -153,5 +153,4 @@ void gnrc_ipv6_nib_ft_print(const gnrc_ipv6_nib_ft_t *fte); } #endif -#endif /* NET_GNRC_IPV6_NIB_FT_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib/nc.h b/sys/include/net/gnrc/ipv6/nib/nc.h index fb28d297042e..5ac6a119264a 100644 --- a/sys/include/net/gnrc/ipv6/nib/nc.h +++ b/sys/include/net/gnrc/ipv6/nib/nc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib_nc Neighbor Cache * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_NC_H -#define NET_GNRC_IPV6_NIB_NC_H #include #include @@ -313,5 +313,4 @@ void gnrc_ipv6_nib_nc_print(gnrc_ipv6_nib_nc_t *nce); } #endif -#endif /* NET_GNRC_IPV6_NIB_NC_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/nib/pl.h b/sys/include/net/gnrc/ipv6/nib/pl.h index 5ca899c64d4e..226bdace926a 100644 --- a/sys/include/net/gnrc/ipv6/nib/pl.h +++ b/sys/include/net/gnrc/ipv6/nib/pl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_nib_pl Prefix list * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_PL_H -#define NET_GNRC_IPV6_NIB_PL_H #include #include "modules.h" @@ -178,5 +178,4 @@ void gnrc_ipv6_nib_pl_print(gnrc_ipv6_nib_pl_t *ple); } #endif -#endif /* NET_GNRC_IPV6_NIB_PL_H */ /** @} */ diff --git a/sys/include/net/gnrc/ipv6/whitelist.h b/sys/include/net/gnrc/ipv6/whitelist.h index 462474c0e7ff..bd2bd704affa 100644 --- a/sys/include/net/gnrc/ipv6/whitelist.h +++ b/sys/include/net/gnrc/ipv6/whitelist.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ipv6_whitelist IPv6 address whitelist * @ingroup net_gnrc_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_WHITELIST_H -#define NET_GNRC_IPV6_WHITELIST_H #include @@ -80,5 +80,4 @@ void gnrc_ipv6_whitelist_print(void); } #endif -#endif /* NET_GNRC_IPV6_WHITELIST_H */ /** @} */ diff --git a/sys/include/net/gnrc/lorawan.h b/sys/include/net/gnrc/lorawan.h index acb2118f6bf8..7054125a302b 100644 --- a/sys/include/net/gnrc/lorawan.h +++ b/sys/include/net/gnrc/lorawan.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_lorawan GNRC LoRaWAN * @ingroup net_gnrc @@ -20,8 +22,6 @@ * @author José Ignacio Alamos * @author Francisco Molina */ -#ifndef NET_GNRC_LORAWAN_H -#define NET_GNRC_LORAWAN_H #include "gnrc_lorawan_internal.h" #include "assert.h" @@ -340,5 +340,4 @@ static inline void gnrc_lorawan_set_uncnf_redundancy(gnrc_lorawan_t *mac, } #endif -#endif /* NET_GNRC_LORAWAN_H */ /** @} */ diff --git a/sys/include/net/gnrc/lorawan/region.h b/sys/include/net/gnrc/lorawan/region.h index 6714e4b988d3..af597038a603 100644 --- a/sys/include/net/gnrc/lorawan/region.h +++ b/sys/include/net/gnrc/lorawan/region.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lorawan * @{ @@ -15,8 +17,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_GNRC_LORAWAN_REGION_H -#define NET_GNRC_LORAWAN_REGION_H #include "modules.h" #include "net/gnrc/lorawan.h" @@ -75,5 +75,4 @@ bool gnrc_lorawan_validate_dr(uint8_t dr); } #endif -#endif /* NET_GNRC_LORAWAN_REGION_H */ /** @} */ diff --git a/sys/include/net/gnrc/lwmac/hdr.h b/sys/include/net/gnrc/lwmac/hdr.h index b599604bdcd8..3086b54ad3a6 100644 --- a/sys/include/net/gnrc/lwmac/hdr.h +++ b/sys/include/net/gnrc/lwmac/hdr.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -18,8 +20,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_HDR_H -#define NET_GNRC_LWMAC_HDR_H #include #include @@ -111,5 +111,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_GNRC_LWMAC_HDR_H */ /** @} */ diff --git a/sys/include/net/gnrc/lwmac/lwmac.h b/sys/include/net/gnrc/lwmac/lwmac.h index 01cf86de74e5..1e80fc4ffce1 100644 --- a/sys/include/net/gnrc/lwmac/lwmac.h +++ b/sys/include/net/gnrc/lwmac/lwmac.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_lwmac LWMAC * @ingroup net_gnrc @@ -72,8 +74,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_LWMAC_H -#define NET_GNRC_LWMAC_LWMAC_H #include "net/gnrc/netif.h" @@ -351,5 +351,4 @@ int gnrc_netif_lwmac_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_LWMAC_LWMAC_H */ /** @} */ diff --git a/sys/include/net/gnrc/lwmac/timeout.h b/sys/include/net/gnrc/lwmac/timeout.h index dc47f90a8fa9..c96ee7da493d 100644 --- a/sys/include/net/gnrc/lwmac/timeout.h +++ b/sys/include/net/gnrc/lwmac/timeout.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,8 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_TIMEOUT_H -#define NET_GNRC_LWMAC_TIMEOUT_H #include #include @@ -98,5 +98,4 @@ void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout); } #endif -#endif /* NET_GNRC_LWMAC_TIMEOUT_H */ /** @} */ diff --git a/sys/include/net/gnrc/lwmac/types.h b/sys/include/net/gnrc/lwmac/types.h index 3c6015dd6835..6e179c3bb14d 100644 --- a/sys/include/net/gnrc/lwmac/types.h +++ b/sys/include/net/gnrc/lwmac/types.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,8 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_TYPES_H -#define NET_GNRC_LWMAC_TYPES_H #include "msg.h" #include "xtimer.h" @@ -216,5 +216,4 @@ typedef struct lwmac { } #endif -#endif /* NET_GNRC_LWMAC_TYPES_H */ /** @} */ diff --git a/sys/include/net/gnrc/mac/internal.h b/sys/include/net/gnrc/mac/internal.h index 30176105b93d..31a32af0a60f 100644 --- a/sys/include/net/gnrc/mac/internal.h +++ b/sys/include/net/gnrc/mac/internal.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_mac * @{ @@ -18,8 +20,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_INTERNAL_H -#define NET_GNRC_MAC_INTERNAL_H #include @@ -141,5 +141,4 @@ void gnrc_mac_dispatch(gnrc_mac_rx_t *rx); } #endif -#endif /* NET_GNRC_MAC_INTERNAL_H */ /** @} */ diff --git a/sys/include/net/gnrc/mac/mac.h b/sys/include/net/gnrc/mac/mac.h index f0fed0934e92..4f22d22797a7 100644 --- a/sys/include/net/gnrc/mac/mac.h +++ b/sys/include/net/gnrc/mac/mac.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_mac Common MAC module * @ingroup net_gnrc @@ -25,8 +27,6 @@ #include "modules.h" -#ifndef NET_GNRC_MAC_MAC_H -#define NET_GNRC_MAC_MAC_H #ifdef __cplusplus extern "C" { @@ -126,5 +126,4 @@ extern "C" { } #endif -#endif /* NET_GNRC_MAC_MAC_H */ /** @} */ diff --git a/sys/include/net/gnrc/mac/timeout.h b/sys/include/net/gnrc/mac/timeout.h index 3b635d77e111..0797c59d766a 100644 --- a/sys/include/net/gnrc/mac/timeout.h +++ b/sys/include/net/gnrc/mac/timeout.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_mac * @{ @@ -18,8 +20,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_TIMEOUT_H -#define NET_GNRC_MAC_TIMEOUT_H #include #include @@ -145,5 +145,4 @@ void gnrc_mac_reset_timeouts(gnrc_mac_timeout_t *mac_timeout); } #endif -#endif /* NET_GNRC_MAC_TIMEOUT_H */ /** @} */ diff --git a/sys/include/net/gnrc/mac/types.h b/sys/include/net/gnrc/mac/types.h index 983e0f13b43f..f7d730af3f93 100644 --- a/sys/include/net/gnrc/mac/types.h +++ b/sys/include/net/gnrc/mac/types.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_mac * @{ @@ -18,8 +20,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_TYPES_H -#define NET_GNRC_MAC_TYPES_H #include #include @@ -242,5 +242,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_MAC_TYPES_H */ /** @} */ diff --git a/sys/include/net/gnrc/ndp.h b/sys/include/net/gnrc/ndp.h index f58a635854f0..1cf4651b9e3e 100644 --- a/sys/include/net/gnrc/ndp.h +++ b/sys/include/net/gnrc/ndp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_ndp IPv6 neighbor discovery (v2) * @ingroup net_gnrc_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NDP_H -#define NET_GNRC_NDP_H #include @@ -415,5 +415,4 @@ void gnrc_ndp_rtr_adv_send(gnrc_netif_t *netif, const ipv6_addr_t *src, } #endif -#endif /* NET_GNRC_NDP_H */ /** @} */ diff --git a/sys/include/net/gnrc/netapi.h b/sys/include/net/gnrc/netapi.h index 60c57e3dd00b..e87e504237a8 100644 --- a/sys/include/net/gnrc/netapi.h +++ b/sys/include/net/gnrc/netapi.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netapi GNRC communication interface * @ingroup net_gnrc @@ -56,8 +58,6 @@ * @} */ -#ifndef NET_GNRC_NETAPI_H -#define NET_GNRC_NETAPI_H #include "thread.h" #include "net/netopt.h" @@ -265,7 +265,6 @@ static inline int gnrc_netapi_set(kernel_pid_t pid, netopt_t opt, } #endif -#endif /* NET_GNRC_NETAPI_H */ /** * @}^ */ diff --git a/sys/include/net/gnrc/neterr.h b/sys/include/net/gnrc/neterr.h index 22cada193694..e40fccff0a07 100644 --- a/sys/include/net/gnrc/neterr.h +++ b/sys/include/net/gnrc/neterr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_neterr Error reporting * @ingroup net_gnrc @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETERR_H -#define NET_GNRC_NETERR_H #include #include @@ -88,5 +88,4 @@ static inline int gnrc_neterr_reg(gnrc_pktsnip_t *pkt) } #endif -#endif /* NET_GNRC_NETERR_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif.h b/sys/include/net/gnrc/netif.h index 5aeaaae249e1..b5e373129284 100644 --- a/sys/include/net/gnrc/netif.h +++ b/sys/include/net/gnrc/netif.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netif Network interface API * @ingroup net_gnrc @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_H -#define NET_GNRC_NETIF_H #include #include @@ -774,5 +774,4 @@ bool gnrc_netif_ipv6_wait_for_global_address(gnrc_netif_t *netif, } #endif -#endif /* NET_GNRC_NETIF_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/6lo.h b/sys/include/net/gnrc/netif/6lo.h index 08e4bcc1aa1f..02d4b67296e6 100644 --- a/sys/include/net/gnrc/netif/6lo.h +++ b/sys/include/net/gnrc/netif/6lo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_6LO_H -#define NET_GNRC_NETIF_6LO_H #include #include @@ -72,5 +72,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_6LO_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/conf.h b/sys/include/net/gnrc/netif/conf.h index f7af784e5887..d8adde9fadbe 100644 --- a/sys/include/net/gnrc/netif/conf.h +++ b/sys/include/net/gnrc/netif/conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netif_conf GNRC network interface configurations * @ingroup net_gnrc_netif @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_CONF_H -#define NET_GNRC_NETIF_CONF_H #include "modules.h" @@ -209,5 +209,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* NET_GNRC_NETIF_CONF_H */ diff --git a/sys/include/net/gnrc/netif/dedup.h b/sys/include/net/gnrc/netif/dedup.h index 829ba22d6dd4..4910b4bd7a17 100644 --- a/sys/include/net/gnrc/netif/dedup.h +++ b/sys/include/net/gnrc/netif/dedup.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netif_dedup Link-layer Broadcast deduplication * @ingroup net_gnrc_netif @@ -24,8 +26,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_DEDUP_H -#define NET_GNRC_NETIF_DEDUP_H #include @@ -48,5 +48,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_DEDUP_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/ethernet.h b/sys/include/net/gnrc/netif/ethernet.h index d4350e2cb91a..dfe85a968432 100644 --- a/sys/include/net/gnrc/netif/ethernet.h +++ b/sys/include/net/gnrc/netif/ethernet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_ETHERNET_H -#define NET_GNRC_NETIF_ETHERNET_H #include "net/gnrc/netif.h" @@ -46,5 +46,4 @@ int gnrc_netif_ethernet_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_ETHERNET_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/flags.h b/sys/include/net/gnrc/netif/flags.h index 242f6fbef007..9892e1d7300e 100644 --- a/sys/include/net/gnrc/netif/flags.h +++ b/sys/include/net/gnrc/netif/flags.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_FLAGS_H -#define NET_GNRC_NETIF_FLAGS_H #ifdef __cplusplus extern "C" { @@ -152,5 +152,4 @@ enum { } #endif -#endif /* NET_GNRC_NETIF_FLAGS_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/hdr.h b/sys/include/net/gnrc/netif/hdr.h index bb13715ab61a..6f89521f280b 100644 --- a/sys/include/net/gnrc/netif/hdr.h +++ b/sys/include/net/gnrc/netif/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netif_hdr Generic network interface header * @ingroup net_gnrc_netif @@ -18,8 +20,6 @@ * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_HDR_H -#define NET_GNRC_NETIF_HDR_H #include #include @@ -444,5 +444,4 @@ int gnrc_netif_hdr_get_srcaddr(gnrc_pktsnip_t* pkt, uint8_t** pointer_to_addr); } #endif -#endif /* NET_GNRC_NETIF_HDR_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/ieee802154.h b/sys/include/net/gnrc/netif/ieee802154.h index d69122b251e1..c1ed3098cc70 100644 --- a/sys/include/net/gnrc/netif/ieee802154.h +++ b/sys/include/net/gnrc/netif/ieee802154.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_IEEE802154_H -#define NET_GNRC_NETIF_IEEE802154_H #include "net/gnrc/netif.h" @@ -46,5 +46,4 @@ int gnrc_netif_ieee802154_create(gnrc_netif_t *netif, char *stack, int stacksize } #endif -#endif /* NET_GNRC_NETIF_IEEE802154_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/internal.h b/sys/include/net/gnrc/netif/internal.h index 58ade6ea8eeb..6cfc6c38f3c0 100644 --- a/sys/include/net/gnrc/netif/internal.h +++ b/sys/include/net/gnrc/netif/internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_gnrc_netif * @internal @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_INTERNAL_H -#define NET_GNRC_NETIF_INTERNAL_H #include "modules.h" @@ -747,6 +747,5 @@ int gnrc_netif_ipv6_add_prefix(gnrc_netif_t *netif, } #endif -#endif /* NET_GNRC_NETIF_INTERNAL_H */ /** @internal *@} */ diff --git a/sys/include/net/gnrc/netif/ipv6.h b/sys/include/net/gnrc/netif/ipv6.h index d58c708017d8..b1cb1c3d3c3c 100644 --- a/sys/include/net/gnrc/netif/ipv6.h +++ b/sys/include/net/gnrc/netif/ipv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_IPV6_H -#define NET_GNRC_NETIF_IPV6_H #include "modules.h" @@ -261,5 +261,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_IPV6_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/lorawan.h b/sys/include/net/gnrc/netif/lorawan.h index 6a7546e10c20..caa121795ff3 100644 --- a/sys/include/net/gnrc/netif/lorawan.h +++ b/sys/include/net/gnrc/netif/lorawan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Jose Ignacio Alamos */ -#ifndef NET_GNRC_NETIF_LORAWAN_H -#define NET_GNRC_NETIF_LORAWAN_H #include "net/gnrc/lorawan.h" @@ -166,5 +166,4 @@ static inline int gnrc_netif_lorawan_set_nwksenckey(gnrc_netif_lorawan_t *lw_net } #endif -#endif /* NET_GNRC_NETIF_LORAWAN_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/lorawan_base.h b/sys/include/net/gnrc/netif/lorawan_base.h index cc56ce5e306e..a69c18650bd5 100644 --- a/sys/include/net/gnrc/netif/lorawan_base.h +++ b/sys/include/net/gnrc/netif/lorawan_base.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Jose Ignacio Alamos */ -#ifndef NET_GNRC_NETIF_LORAWAN_BASE_H -#define NET_GNRC_NETIF_LORAWAN_BASE_H #include "net/gnrc/netif.h" @@ -46,5 +46,4 @@ int gnrc_netif_lorawan_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_LORAWAN_BASE_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/mac.h b/sys/include/net/gnrc/netif/mac.h index 97429329d436..0af4c27ed60d 100644 --- a/sys/include/net/gnrc/netif/mac.h +++ b/sys/include/net/gnrc/netif/mac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_MAC_H -#define NET_GNRC_NETIF_MAC_H #include "net/gnrc/mac/types.h" #include "net/csma_sender.h" @@ -110,5 +110,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_MAC_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/pktq.h b/sys/include/net/gnrc/netif/pktq.h index 7138e3b5b451..f13f6dc86d6e 100644 --- a/sys/include/net/gnrc/netif/pktq.h +++ b/sys/include/net/gnrc/netif/pktq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netif_pktq Send queue for @ref net_gnrc_netif * @ingroup net_gnrc_netif @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_NETIF_PKTQ_H -#define NET_GNRC_NETIF_PKTQ_H #include #include @@ -141,5 +141,4 @@ static inline bool gnrc_netif_pktq_empty(gnrc_netif_t *netif) } #endif -#endif /* NET_GNRC_NETIF_PKTQ_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/pktq/type.h b/sys/include/net/gnrc/netif/pktq/type.h index 95823b78d0bb..4aff116aa274 100644 --- a/sys/include/net/gnrc/netif/pktq/type.h +++ b/sys/include/net/gnrc/netif/pktq/type.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_gnrc_netif_pktq * @brief @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_NETIF_PKTQ_TYPE_H -#define NET_GNRC_NETIF_PKTQ_TYPE_H #include "net/gnrc/pktqueue.h" #include "xtimer.h" @@ -46,5 +46,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_PKTQ_TYPE_H */ /** @} */ diff --git a/sys/include/net/gnrc/netif/raw.h b/sys/include/net/gnrc/netif/raw.h index 870838be9a5c..3b04632e1d20 100644 --- a/sys/include/net/gnrc/netif/raw.h +++ b/sys/include/net/gnrc/netif/raw.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_netif * @{ @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_RAW_H -#define NET_GNRC_NETIF_RAW_H #include "net/gnrc/netif.h" @@ -47,5 +47,4 @@ int gnrc_netif_raw_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_RAW_H */ /** @} */ diff --git a/sys/include/net/gnrc/netreg.h b/sys/include/net/gnrc/netreg.h index c9b9c01e274b..ad48958850a9 100644 --- a/sys/include/net/gnrc/netreg.h +++ b/sys/include/net/gnrc/netreg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_netreg Network protocol registry * @ingroup net_gnrc @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETREG_H -#define NET_GNRC_NETREG_H #include @@ -435,5 +435,4 @@ int gnrc_netreg_calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr); } #endif -#endif /* NET_GNRC_NETREG_H */ /** @} */ diff --git a/sys/include/net/gnrc/nettype.h b/sys/include/net/gnrc/nettype.h index b2880f12c695..6fed393afb0e 100644 --- a/sys/include/net/gnrc/nettype.h +++ b/sys/include/net/gnrc/nettype.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_nettype gnrc_nettype: Protocol type * @ingroup net_gnrc @@ -30,8 +32,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETTYPE_H -#define NET_GNRC_NETTYPE_H #include @@ -306,5 +306,4 @@ static inline uint8_t gnrc_nettype_to_protnum(gnrc_nettype_t type) } #endif -#endif /* NET_GNRC_NETTYPE_H */ /** @} */ diff --git a/sys/include/net/gnrc/pkt.h b/sys/include/net/gnrc/pkt.h index c6eddef01e18..e62eea80e711 100644 --- a/sys/include/net/gnrc/pkt.h +++ b/sys/include/net/gnrc/pkt.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_pkt Packet * @ingroup net_gnrc_pktbuf @@ -19,8 +21,6 @@ * @author Martine Lenders * @author Hauke Petersen */ -#ifndef NET_GNRC_PKT_H -#define NET_GNRC_PKT_H #include #include @@ -293,5 +293,4 @@ gnrc_pktsnip_t *gnrc_pktsnip_search_type(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_PKT_H */ /** @} */ diff --git a/sys/include/net/gnrc/pktbuf.h b/sys/include/net/gnrc/pktbuf.h index cbb0e3d26ac1..fa0d89b934c5 100644 --- a/sys/include/net/gnrc/pktbuf.h +++ b/sys/include/net/gnrc/pktbuf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_pktbuf Packet buffer * @ingroup net_gnrc @@ -27,8 +29,6 @@ * @author Martine Lenders * @author Hauke Petersen */ -#ifndef NET_GNRC_PKTBUF_H -#define NET_GNRC_PKTBUF_H #include #include @@ -330,5 +330,4 @@ bool gnrc_pktbuf_is_sane(void); } #endif -#endif /* NET_GNRC_PKTBUF_H */ /** @} */ diff --git a/sys/include/net/gnrc/pktdump.h b/sys/include/net/gnrc/pktdump.h index 5a0498256dcb..107812616a7b 100644 --- a/sys/include/net/gnrc/pktdump.h +++ b/sys/include/net/gnrc/pktdump.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_pktdump Dump Network Packets * @ingroup net_gnrc @@ -19,8 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_PKTDUMP_H -#define NET_GNRC_PKTDUMP_H #include "sched.h" @@ -88,5 +88,4 @@ kernel_pid_t gnrc_pktdump_init(void); } #endif -#endif /* NET_GNRC_PKTDUMP_H */ /** @} */ diff --git a/sys/include/net/gnrc/pktqueue.h b/sys/include/net/gnrc/pktqueue.h index ccbd850cf7e2..6a7b44a91862 100644 --- a/sys/include/net/gnrc/pktqueue.h +++ b/sys/include/net/gnrc/pktqueue.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gnrc_pktqueue Packet queue * @ingroup net_gnrc @@ -18,8 +20,6 @@ * @author Martine Lenders */ -#ifndef NET_GNRC_PKTQUEUE_H -#define NET_GNRC_PKTQUEUE_H #include #include @@ -84,7 +84,6 @@ static inline gnrc_pktqueue_t *gnrc_pktqueue_remove_head(gnrc_pktqueue_t **queue } #endif -#endif /* NET_GNRC_PKTQUEUE_H */ /** * @} */ diff --git a/sys/include/net/gnrc/priority_pktqueue.h b/sys/include/net/gnrc/priority_pktqueue.h index e3cb0f2607c4..e2bd6c98fa55 100644 --- a/sys/include/net/gnrc/priority_pktqueue.h +++ b/sys/include/net/gnrc/priority_pktqueue.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_priority_pktqueue Priority packet queue for GNRC * @ingroup net_gnrc @@ -20,8 +22,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_PRIORITY_PKTQUEUE_H -#define NET_GNRC_PRIORITY_PKTQUEUE_H #include @@ -135,5 +135,4 @@ void gnrc_priority_pktqueue_push(gnrc_priority_pktqueue_t *queue, } #endif -#endif /* NET_GNRC_PRIORITY_PKTQUEUE_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl.h b/sys/include/net/gnrc/rpl.h index f4fb70a7c146..6802dcc51e9c 100644 --- a/sys/include/net/gnrc/rpl.h +++ b/sys/include/net/gnrc/rpl.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_rpl RPL * @ingroup net_gnrc @@ -138,8 +140,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_H -#define NET_GNRC_RPL_H #include #include @@ -761,5 +761,4 @@ void gnrc_rpl_configure_root(gnrc_netif_t *netif, const ipv6_addr_t *dodag_id); } #endif -#endif /* NET_GNRC_RPL_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl/dodag.h b/sys/include/net/gnrc/rpl/dodag.h index af1de40c7aa8..48dbfc328373 100644 --- a/sys/include/net/gnrc/rpl/dodag.h +++ b/sys/include/net/gnrc/rpl/dodag.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -20,8 +22,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_DODAG_H -#define NET_GNRC_RPL_DODAG_H #ifdef __cplusplus extern "C" { @@ -180,7 +180,6 @@ void gnrc_rpl_router_operation(gnrc_rpl_dodag_t *dodag); } #endif -#endif /* NET_GNRC_RPL_DODAG_H */ /** * @} */ diff --git a/sys/include/net/gnrc/rpl/of_manager.h b/sys/include/net/gnrc/rpl/of_manager.h index 4901e791ec5b..e04b2bca1145 100644 --- a/sys/include/net/gnrc/rpl/of_manager.h +++ b/sys/include/net/gnrc/rpl/of_manager.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -16,8 +18,6 @@ * @author Fabian Brandt */ -#ifndef NET_GNRC_RPL_OF_MANAGER_H -#define NET_GNRC_RPL_OF_MANAGER_H #include "structs.h" @@ -41,5 +41,4 @@ gnrc_rpl_of_t *gnrc_rpl_get_of_for_ocp(uint16_t ocp); } #endif -#endif /* NET_GNRC_RPL_OF_MANAGER_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl/p2p.h b/sys/include/net/gnrc/rpl/p2p.h index 252586eaa7e0..c53dd076cae9 100644 --- a/sys/include/net/gnrc/rpl/p2p.h +++ b/sys/include/net/gnrc/rpl/p2p.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_rpl_p2p Reactive Discovery of P2P Routes in LLNs * @ingroup net_gnrc_rpl @@ -20,8 +22,6 @@ * * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_P2P_H -#define NET_GNRC_RPL_P2P_H #include "net/ipv6/addr.h" #include "net/gnrc.h" @@ -176,5 +176,4 @@ void gnrc_rpl_p2p_update(void); } #endif -#endif /* NET_GNRC_RPL_P2P_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl/p2p_dodag.h b/sys/include/net/gnrc/rpl/p2p_dodag.h index 40179b2d9655..ebd15367bbb0 100644 --- a/sys/include/net/gnrc/rpl/p2p_dodag.h +++ b/sys/include/net/gnrc/rpl/p2p_dodag.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl_p2p * @{ @@ -18,8 +20,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_P2P_DODAG_H -#define NET_GNRC_RPL_P2P_DODAG_H #ifdef __cplusplus extern "C" { @@ -68,7 +68,6 @@ gnrc_rpl_p2p_ext_t *gnrc_rpl_p2p_ext_get(gnrc_rpl_dodag_t *dodag); } #endif -#endif /* NET_GNRC_RPL_P2P_DODAG_H */ /** * @} */ diff --git a/sys/include/net/gnrc/rpl/p2p_structs.h b/sys/include/net/gnrc/rpl/p2p_structs.h index dd3fe94ef086..c8da3f78cbf4 100644 --- a/sys/include/net/gnrc/rpl/p2p_structs.h +++ b/sys/include/net/gnrc/rpl/p2p_structs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl_p2p * @{ @@ -18,8 +20,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_P2P_STRUCTS_H -#define NET_GNRC_RPL_P2P_STRUCTS_H #ifdef __cplusplus extern "C" { @@ -100,7 +100,6 @@ typedef struct { } #endif -#endif /* NET_GNRC_RPL_P2P_STRUCTS_H */ /** * @} */ diff --git a/sys/include/net/gnrc/rpl/rpble.h b/sys/include/net/gnrc/rpl/rpble.h index 22403024082b..2a946fa12d04 100644 --- a/sys/include/net/gnrc/rpl/rpble.h +++ b/sys/include/net/gnrc/rpl/rpble.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -16,8 +18,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_RPL_RPBLE_H -#define NET_GNRC_RPL_RPBLE_H #include #if IS_USED(MODULE_NIMBLE_RPBLE) @@ -51,5 +51,4 @@ static inline void gnrc_rpl_rpble_update(const gnrc_rpl_dodag_t *dodag) } #endif -#endif /* NET_GNRC_RPL_RPBLE_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl/srh.h b/sys/include/net/gnrc/rpl/srh.h index 42ff83b5e691..ee63d53e931c 100644 --- a/sys/include/net/gnrc/rpl/srh.h +++ b/sys/include/net/gnrc/rpl/srh.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_rpl_srh RPL source routing header extension * @ingroup net_gnrc_rpl @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_RPL_SRH_H -#define NET_GNRC_RPL_SRH_H #include "net/ipv6/hdr.h" #include "net/ipv6/addr.h" @@ -73,5 +73,4 @@ int gnrc_rpl_srh_process(ipv6_hdr_t *ipv6, gnrc_rpl_srh_t *rh, void **err_ptr); } #endif -#endif /* NET_GNRC_RPL_SRH_H */ /** @} */ diff --git a/sys/include/net/gnrc/rpl/structs.h b/sys/include/net/gnrc/rpl/structs.h index 98011b3fa884..17665282f9fc 100644 --- a/sys/include/net/gnrc/rpl/structs.h +++ b/sys/include/net/gnrc/rpl/structs.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -21,8 +23,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_STRUCTS_H -#define NET_GNRC_RPL_STRUCTS_H #ifdef __cplusplus extern "C" { @@ -375,7 +375,6 @@ typedef struct { } #endif -#endif /* NET_GNRC_RPL_STRUCTS_H */ /** * @} */ diff --git a/sys/include/net/gnrc/sixlowpan.h b/sys/include/net/gnrc/sixlowpan.h index caca204c16e4..19f142a28e0b 100644 --- a/sys/include/net/gnrc/sixlowpan.h +++ b/sys/include/net/gnrc/sixlowpan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan 6LoWPAN * @ingroup net_gnrc @@ -132,8 +134,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_H -#define NET_GNRC_SIXLOWPAN_H #include @@ -166,5 +166,4 @@ kernel_pid_t gnrc_sixlowpan_init(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/config.h b/sys/include/net/gnrc/sixlowpan/config.h index 0588d0b262d2..86e6906c5671 100644 --- a/sys/include/net/gnrc/sixlowpan/config.h +++ b/sys/include/net/gnrc/sixlowpan/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_config GNRC 6LoWPAN compile configurations * @ingroup net_gnrc_sixlowpan @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_CONFIG_H -#define NET_GNRC_SIXLOWPAN_CONFIG_H #include "modules.h" #include "timex.h" @@ -411,5 +411,4 @@ extern "C" { } #endif -#endif /* NET_GNRC_SIXLOWPAN_CONFIG_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/ctx.h b/sys/include/net/gnrc/sixlowpan/ctx.h index 514872410236..57dc66af80c3 100644 --- a/sys/include/net/gnrc/sixlowpan/ctx.h +++ b/sys/include/net/gnrc/sixlowpan/ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_ctx Contexts for 6LoWPAN address compression * @ingroup net_gnrc_sixlowpan @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_CTX_H -#define NET_GNRC_SIXLOWPAN_CTX_H #include #include @@ -200,5 +200,4 @@ void gnrc_sixlowpan_ctx_reset(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_CTX_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag.h b/sys/include/net/gnrc/sixlowpan/frag.h index 728211938e49..a0669f105e18 100644 --- a/sys/include/net/gnrc/sixlowpan/frag.h +++ b/sys/include/net/gnrc/sixlowpan/frag.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag 6LoWPAN Fragmentation * @ingroup net_gnrc_sixlowpan @@ -22,8 +24,6 @@ * @author Martine Lenders * @author Peter Kietzmann */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_H -#define NET_GNRC_SIXLOWPAN_FRAG_H #include @@ -71,5 +71,4 @@ void gnrc_sixlowpan_frag_recv(gnrc_pktsnip_t *pkt, void *ctx, unsigned page); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/fb.h b/sys/include/net/gnrc/sixlowpan/frag/fb.h index f716d77020f5..e23ea8f1c50d 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/fb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/fb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_fb 6LoWPAN fragmentation buffer * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_FB_H -#define NET_GNRC_SIXLOWPAN_FRAG_FB_H #include #include @@ -139,5 +139,4 @@ static inline bool gnrc_sixlowpan_frag_fb_send(gnrc_sixlowpan_frag_fb_t *fbuf) } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_FB_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/hint.h b/sys/include/net/gnrc/sixlowpan/frag/hint.h index d5bd46a78690..4fe16c4bbbf5 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/hint.h +++ b/sys/include/net/gnrc/sixlowpan/frag/hint.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_hint Fragment size hint * @ingroup net_gnrc_sixlowpan_frag @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_HINT_H -#define NET_GNRC_SIXLOWPAN_FRAG_HINT_H #include @@ -55,5 +55,4 @@ typedef struct { } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_HINT_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/minfwd.h b/sys/include/net/gnrc/sixlowpan/frag/minfwd.h index df9a93ecf04e..e8c31bdb724a 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/minfwd.h +++ b/sys/include/net/gnrc/sixlowpan/frag/minfwd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_minfwd Minimal fragment forwarding * @ingroup net_gnrc_sixlowpan_frag @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H -#define NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H #include @@ -96,5 +96,4 @@ int gnrc_sixlowpan_frag_minfwd_frag_iphc(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/rb.h b/sys/include/net/gnrc/sixlowpan/frag/rb.h index 423fc634f16f..12527503a341 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/rb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/rb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_rb 6LoWPAN reassembly buffer * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_RB_H -#define NET_GNRC_SIXLOWPAN_FRAG_RB_H #include #include @@ -316,5 +316,4 @@ static inline bool gnrc_sixlowpan_frag_rb_ints_empty(void) } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_RB_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr.h b/sys/include/net/gnrc/sixlowpan/frag/sfr.h index 2f54c8971587..859e0db6fcac 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_sfr 6LoWPAN selective fragment recovery * @ingroup net_gnrc_sixlowpan @@ -31,8 +33,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_H #include "assert.h" #include "bitfield.h" @@ -203,5 +203,4 @@ void gnrc_sixlowpan_frag_sfr_stats_get(gnrc_sixlowpan_frag_sfr_stats_t *stats); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h b/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h index 2b768fda78a3..72071e3cbffa 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_sfr_congure Congestion control for 6LoWPAN SFR * @ingroup net_gnrc_sixlowpan_frag_sfr @@ -26,8 +28,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H #include #include @@ -427,5 +427,4 @@ static inline void gnrc_sixlowpan_frag_sfr_congure_snd_report_ecn( } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h b/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h index bbb18ded6295..ee1282a37ee4 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_gnrc_sixlowpan_frag_sfr * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H #include @@ -64,5 +64,4 @@ typedef struct gnrc_sixlowpan_frag_sfr_fb { } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/stats.h b/sys/include/net/gnrc/sixlowpan/frag/stats.h index 164624dfffbb..cfa0ae4e8a16 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/stats.h +++ b/sys/include/net/gnrc/sixlowpan/frag/stats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_stats Fragmentation and reassembly statistics * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_STATS_H -#define NET_GNRC_SIXLOWPAN_FRAG_STATS_H #ifdef __cplusplus extern "C" { @@ -53,5 +53,4 @@ gnrc_sixlowpan_frag_stats_t *gnrc_sixlowpan_frag_stats_get(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_STATS_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/vrb.h b/sys/include/net/gnrc/sixlowpan/frag/vrb.h index daabe8225ff8..9db996091d4c 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/vrb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/vrb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_frag_vrb Virtual reassembly buffer * @ingroup net_gnrc_sixlowpan_frag @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_VRB_H -#define NET_GNRC_SIXLOWPAN_FRAG_VRB_H #include #include @@ -180,5 +180,4 @@ void gnrc_sixlowpan_frag_vrb_reset(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_VRB_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/internal.h b/sys/include/net/gnrc/sixlowpan/internal.h index 8c7bc5838f2d..879dd66c73ce 100644 --- a/sys/include/net/gnrc/sixlowpan/internal.h +++ b/sys/include/net/gnrc/sixlowpan/internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_sixlowpan * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_INTERNAL_H -#define NET_GNRC_SIXLOWPAN_INTERNAL_H #include @@ -73,5 +73,4 @@ void gnrc_sixlowpan_multiplex_by_size(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_SIXLOWPAN_INTERNAL_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/iphc.h b/sys/include/net/gnrc/sixlowpan/iphc.h index deb5bd7a6ab5..7e57cc5cde7a 100644 --- a/sys/include/net/gnrc/sixlowpan/iphc.h +++ b/sys/include/net/gnrc/sixlowpan/iphc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_iphc IPv6 header compression (IPHC) * @ingroup net_gnrc_sixlowpan @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_IPHC_H -#define NET_GNRC_SIXLOWPAN_IPHC_H #include @@ -67,5 +67,4 @@ void gnrc_sixlowpan_iphc_send(gnrc_pktsnip_t *pkt, void *ctx, unsigned page); } #endif -#endif /* NET_GNRC_SIXLOWPAN_IPHC_H */ /** @} */ diff --git a/sys/include/net/gnrc/sixlowpan/nd.h b/sys/include/net/gnrc/sixlowpan/nd.h index 15abd2634c76..826ab6f00c5a 100644 --- a/sys/include/net/gnrc/sixlowpan/nd.h +++ b/sys/include/net/gnrc/sixlowpan/nd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sixlowpan_nd 6LoWPAN neighbor discovery * @ingroup net_gnrc_sixlowpan @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_ND_H -#define NET_GNRC_SIXLOWPAN_ND_H #include @@ -83,5 +83,4 @@ gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime } #endif -#endif /* NET_GNRC_SIXLOWPAN_ND_H */ /** @} */ diff --git a/sys/include/net/gnrc/tcp.h b/sys/include/net/gnrc/tcp.h index 9b37c58a09d9..ebed2ab49dc3 100644 --- a/sys/include/net/gnrc/tcp.h +++ b/sys/include/net/gnrc/tcp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_tcp TCP * @ingroup net_gnrc @@ -19,8 +21,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_H -#define NET_GNRC_TCP_H #include #include "net/gnrc/pkt.h" @@ -371,5 +371,4 @@ gnrc_pktsnip_t *gnrc_tcp_hdr_build(gnrc_pktsnip_t *payload, uint16_t src, uint16 } #endif -#endif /* NET_GNRC_TCP_H */ /** @} */ diff --git a/sys/include/net/gnrc/tcp/config.h b/sys/include/net/gnrc/tcp/config.h index a63ea3bb7a1a..9c44aef5393d 100644 --- a/sys/include/net/gnrc/tcp/config.h +++ b/sys/include/net/gnrc/tcp/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_CONFIG_H -#define NET_GNRC_TCP_CONFIG_H #include "timex.h" @@ -211,5 +211,4 @@ extern "C" { } #endif -#endif /* NET_GNRC_TCP_CONFIG_H */ /** @} */ diff --git a/sys/include/net/gnrc/tcp/tcb.h b/sys/include/net/gnrc/tcp/tcb.h index a83d333892ae..dd1897706885 100644 --- a/sys/include/net/gnrc/tcp/tcb.h +++ b/sys/include/net/gnrc/tcp/tcb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_TCB_H -#define NET_GNRC_TCP_TCB_H #include #include "ringbuffer.h" @@ -96,5 +96,4 @@ typedef struct sock_tcp_queue { #ifdef __cplusplus } #endif -#endif /* NET_GNRC_TCP_TCB_H */ /** @} */ diff --git a/sys/include/net/gnrc/tx_sync.h b/sys/include/net/gnrc/tx_sync.h index 5b8c2159f5cc..f597b0446f03 100644 --- a/sys/include/net/gnrc/tx_sync.h +++ b/sys/include/net/gnrc/tx_sync.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_tx_sync Helpers for synchronizing with transmission. * @ingroup net_gnrc @@ -18,8 +20,6 @@ * * @author Marian Buschsieweke */ -#ifndef NET_GNRC_TX_SYNC_H -#define NET_GNRC_TX_SYNC_H #include #include @@ -135,5 +135,4 @@ static inline void gnrc_tx_sync(gnrc_tx_sync_t *sync) } #endif -#endif /* NET_GNRC_TX_SYNC_H */ /** @} */ diff --git a/sys/include/net/gnrc/udp.h b/sys/include/net/gnrc/udp.h index 8e2da33a7fc1..27120733adbc 100644 --- a/sys/include/net/gnrc/udp.h +++ b/sys/include/net/gnrc/udp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_udp UDP * @ingroup net_gnrc @@ -19,8 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_UDP_H -#define NET_GNRC_UDP_H #include @@ -115,5 +115,4 @@ int gnrc_udp_init(void); } #endif -#endif /* NET_GNRC_UDP_H */ /** @} */ diff --git a/sys/include/net/iana/portrange.h b/sys/include/net/iana/portrange.h index 20f48be49006..cbef4d74acbf 100644 --- a/sys/include/net/iana/portrange.h +++ b/sys/include/net/iana/portrange.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_iana_portrange IANA Port Ranges * @ingroup net @@ -17,8 +19,6 @@ * * @author smlng , */ -#ifndef NET_IANA_PORTRANGE_H -#define NET_IANA_PORTRANGE_H #ifdef __cplusplus extern "C" { @@ -43,5 +43,4 @@ extern "C" { } #endif -#endif /* NET_IANA_PORTRANGE_H */ /** @} */ diff --git a/sys/include/net/icmp.h b/sys/include/net/icmp.h index a7645ac0478a..d4da42cd2a83 100644 --- a/sys/include/net/icmp.h +++ b/sys/include/net/icmp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_icmp ICMPV4 * @ingroup net_ipv4 @@ -20,8 +22,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_ICMP_H -#define NET_ICMP_H #include "byteorder.h" @@ -48,5 +48,4 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* NET_ICMP_H */ /** @} */ diff --git a/sys/include/net/icmpv6.h b/sys/include/net/icmpv6.h index b9366e33f5d0..a5bd68496bda 100644 --- a/sys/include/net/icmpv6.h +++ b/sys/include/net/icmpv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_icmpv6 ICMPV6 * @ingroup net_ipv6 @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_ICMPV6_H -#define NET_ICMPV6_H #include @@ -231,5 +231,4 @@ void icmpv6_hdr_print(icmpv6_hdr_t *hdr); } #endif -#endif /* NET_ICMPV6_H */ /** @} */ diff --git a/sys/include/net/ieee802154.h b/sys/include/net/ieee802154.h index d92a1352d9a6..775fa84d4c13 100644 --- a/sys/include/net/ieee802154.h +++ b/sys/include/net/ieee802154.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ieee802154_header IEEE 802.15.4 frame headers and definitions * @ingroup net_ieee802154 @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_IEEE802154_H -#define NET_IEEE802154_H #include #include @@ -794,5 +794,4 @@ static inline uint8_t ieee802154_dbm_to_rssi(int16_t dbm) } #endif -#endif /* NET_IEEE802154_H */ /** @} */ diff --git a/sys/include/net/ieee802154/radio.h b/sys/include/net/ieee802154/radio.h index eb20f33004b8..b221cbfcff50 100644 --- a/sys/include/net/ieee802154/radio.h +++ b/sys/include/net/ieee802154/radio.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup drivers_ieee802154_hal IEEE802.15.4 Radio Hardware Abstraction Layer * @ingroup drivers @@ -19,8 +21,6 @@ * @author José I. Alamos */ -#ifndef NET_IEEE802154_RADIO_H -#define NET_IEEE802154_RADIO_H #ifdef __cplusplus extern "C" { @@ -1647,5 +1647,4 @@ static inline ieee802154_phy_mode_t ieee802154_cap_to_phy_mode(uint32_t cap) } #endif -#endif /* NET_IEEE802154_RADIO_H */ /** @} */ diff --git a/sys/include/net/ieee802154/submac.h b/sys/include/net/ieee802154/submac.h index a41de6cc1540..6c340d459374 100644 --- a/sys/include/net/ieee802154/submac.h +++ b/sys/include/net/ieee802154/submac.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup net_ieee802154_submac IEEE802.15.4 SubMAC layer * @ingroup net_ieee802154 @@ -104,8 +106,6 @@ * * @author José I. Alamos */ -#ifndef NET_IEEE802154_SUBMAC_H -#define NET_IEEE802154_SUBMAC_H #ifdef __cplusplus extern "C" { @@ -612,5 +612,4 @@ static inline void ieee802154_submac_tx_done_cb(ieee802154_submac_t *submac) } #endif -#endif /* NET_IEEE802154_SUBMAC_H */ /** @} */ diff --git a/sys/include/net/ieee802154_security.h b/sys/include/net/ieee802154_security.h index 6d3d842ee258..181d3b9fb11b 100644 --- a/sys/include/net/ieee802154_security.h +++ b/sys/include/net/ieee802154_security.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ieee802154_security IEEE 802.15.4 security * @ingroup net_ieee802154 @@ -27,8 +29,6 @@ * @author Fabian Hüßler */ -#ifndef NET_IEEE802154_SECURITY_H -#define NET_IEEE802154_SECURITY_H #include #include "ieee802154.h" @@ -439,5 +439,4 @@ extern const ieee802154_radio_cipher_ops_t ieee802154_radio_cipher_ops; } #endif -#endif /* NET_IEEE802154_SECURITY_H */ /** @} */ diff --git a/sys/include/net/inet_csum.h b/sys/include/net/inet_csum.h index 4b89c1699385..fddb16475a07 100644 --- a/sys/include/net/inet_csum.h +++ b/sys/include/net/inet_csum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_inet_csum Internet Checksum * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_INET_CSUM_H -#define NET_INET_CSUM_H #include #include @@ -77,5 +77,4 @@ static inline uint16_t inet_csum(uint16_t sum, const uint8_t *buf, uint16_t len) } #endif -#endif /* NET_INET_CSUM_H */ /** @} */ diff --git a/sys/include/net/ipv4.h b/sys/include/net/ipv4.h index ebbd588af0ef..bcfbc2bd1866 100644 --- a/sys/include/net/ipv4.h +++ b/sys/include/net/ipv4.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv4 IPv4 * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV4_H -#define NET_IPV4_H #include "net/ipv4/addr.h" @@ -30,5 +30,4 @@ extern "C" { } #endif -#endif /* NET_IPV4_H */ /** @} */ diff --git a/sys/include/net/ipv4/addr.h b/sys/include/net/ipv4/addr.h index df837ea94663..ea3ff83ed4da 100644 --- a/sys/include/net/ipv4/addr.h +++ b/sys/include/net/ipv4/addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv4_addr IPv4 addresses * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV4_ADDR_H -#define NET_IPV4_ADDR_H #include #include @@ -141,5 +141,4 @@ void ipv4_addr_print(const ipv4_addr_t *addr); } #endif -#endif /* NET_IPV4_ADDR_H */ /** @} */ diff --git a/sys/include/net/ipv4/hdr.h b/sys/include/net/ipv4/hdr.h index 13c90386ecdd..fb432b16a219 100644 --- a/sys/include/net/ipv4/hdr.h +++ b/sys/include/net/ipv4/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv4_hdr IPv4 header * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_IPV4_HDR_H -#define NET_IPV4_HDR_H #include "byteorder.h" #include "net/ipv4/addr.h" @@ -190,5 +190,4 @@ static inline uint16_t ipv4_hdr_get_fo(ipv4_hdr_t *hdr) } #endif -#endif /* NET_IPV4_HDR_H */ /** @} */ diff --git a/sys/include/net/ipv6.h b/sys/include/net/ipv6.h index 58c37ccaecaf..d90b4fd97f97 100644 --- a/sys/include/net/ipv6.h +++ b/sys/include/net/ipv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6 IPv6 * @ingroup net @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_H -#define NET_IPV6_H #include "net/ipv6/addr.h" #include "net/ipv6/ext.h" @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* NET_IPV6_H */ /** @} */ diff --git a/sys/include/net/ipv6/addr.h b/sys/include/net/ipv6/addr.h index 3679c0bda053..3365b715b449 100644 --- a/sys/include/net/ipv6/addr.h +++ b/sys/include/net/ipv6/addr.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_ipv6_addr IPv6 addresses * @ingroup net_ipv6 @@ -21,8 +23,6 @@ * @author Martine Lenders */ -#ifndef NET_IPV6_ADDR_H -#define NET_IPV6_ADDR_H #include #include @@ -768,7 +768,6 @@ void ipv6_addrs_print(const ipv6_addr_t *addrs, size_t num, } #endif -#endif /* NET_IPV6_ADDR_H */ /** * @} */ diff --git a/sys/include/net/ipv6/ext.h b/sys/include/net/ipv6/ext.h index 2771e6132eed..4b47cb8fdecc 100644 --- a/sys/include/net/ipv6/ext.h +++ b/sys/include/net/ipv6/ext.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6_ext IPv6 extension headers * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_H -#define NET_IPV6_EXT_H #include @@ -59,5 +59,4 @@ static inline ipv6_ext_t *ipv6_ext_get_next(ipv6_ext_t *ext) } #endif -#endif /* NET_IPV6_EXT_H */ /** @} */ diff --git a/sys/include/net/ipv6/ext/frag.h b/sys/include/net/ipv6/ext/frag.h index 9cc033f761d9..e82b9d33da08 100644 --- a/sys/include/net/ipv6/ext/frag.h +++ b/sys/include/net/ipv6/ext/frag.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6_ext_frag IPv6 fragmentation extension * @ingroup net_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_FRAG_H -#define NET_IPV6_EXT_FRAG_H #include #include @@ -115,5 +115,4 @@ static inline void ipv6_ext_frag_set_more(ipv6_ext_frag_t *frag) } #endif -#endif /* NET_IPV6_EXT_FRAG_H */ /** @} */ diff --git a/sys/include/net/ipv6/ext/opt.h b/sys/include/net/ipv6/ext/opt.h index 685ea0b79034..e8f26d8d2b60 100644 --- a/sys/include/net/ipv6/ext/opt.h +++ b/sys/include/net/ipv6/ext/opt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6_ext_opt IPv6 destination and hop-by-hop options * @ingroup net_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_OPT_H -#define NET_IPV6_EXT_OPT_H #include @@ -92,5 +92,4 @@ extern "C" { } #endif -#endif /* NET_IPV6_EXT_OPT_H */ /** @} */ diff --git a/sys/include/net/ipv6/ext/rh.h b/sys/include/net/ipv6/ext/rh.h index b430b1b7734c..4577d2742292 100644 --- a/sys/include/net/ipv6/ext/rh.h +++ b/sys/include/net/ipv6/ext/rh.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6_ext_rh IPv6 routing header extension * @ingroup net_ipv6_ext @@ -19,8 +21,6 @@ * @author Cenk Gündoğan * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_RH_H -#define NET_IPV6_EXT_RH_H #include @@ -74,5 +74,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_IPV6_EXT_RH_H */ /** @} */ diff --git a/sys/include/net/ipv6/hdr.h b/sys/include/net/ipv6/hdr.h index f240a54b355e..a626f0c626e7 100644 --- a/sys/include/net/ipv6/hdr.h +++ b/sys/include/net/ipv6/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ipv6_hdr IPv6 header * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_HDR_H -#define NET_IPV6_HDR_H #include @@ -303,5 +303,4 @@ void ipv6_hdr_print(ipv6_hdr_t *hdr); } #endif -#endif /* NET_IPV6_HDR_H */ /** @} */ diff --git a/sys/include/net/l2filter.h b/sys/include/net/l2filter.h index 25a68f1de18f..9a7671eacab3 100644 --- a/sys/include/net/l2filter.h +++ b/sys/include/net/l2filter.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @experimental * @defgroup net_l2filter Link layer address filter @@ -29,8 +31,6 @@ * @author Hauke Petersen */ -#ifndef NET_L2FILTER_H -#define NET_L2FILTER_H #include #include @@ -132,5 +132,4 @@ bool l2filter_pass(const l2filter_t *list, const void *addr, size_t addr_len); } #endif -#endif /* NET_L2FILTER_H */ /** @} */ diff --git a/sys/include/net/l2scan_list.h b/sys/include/net/l2scan_list.h index 7d88e3e22040..39aae6175bb6 100644 --- a/sys/include/net/l2scan_list.h +++ b/sys/include/net/l2scan_list.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_l2scanlist Scan List - List of wireless access points * @ingroup net @@ -19,8 +21,6 @@ * @author Fabian Hüßler */ -#ifndef NET_L2SCAN_LIST_H -#define NET_L2SCAN_LIST_H #include @@ -83,5 +83,4 @@ unsigned l2scan_list_to_array(const l2scan_list_t *list, } #endif -#endif /* NET_L2SCAN_LIST_H */ /** @} */ diff --git a/sys/include/net/l2util.h b/sys/include/net/l2util.h index 1d08bbb7aa47..900de3bf89e5 100644 --- a/sys/include/net/l2util.h +++ b/sys/include/net/l2util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_l2util Stack-independent helpers for IPv6 over X * @ingroup net @@ -22,8 +24,6 @@ * * @author Martine Lenders */ -#ifndef NET_L2UTIL_H -#define NET_L2UTIL_H #include @@ -214,5 +214,4 @@ static inline bool l2util_addr_equal(const uint8_t *addr_a, uint8_t addr_a_len, } #endif -#endif /* NET_L2UTIL_H */ /** @} */ diff --git a/sys/include/net/lora.h b/sys/include/net/lora.h index 24ccce6a602c..fe06a5fb1483 100644 --- a/sys/include/net/lora.h +++ b/sys/include/net/lora.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_lora LoRa modulation * @ingroup net @@ -18,8 +20,6 @@ * @author Alexandre Abadie */ -#ifndef NET_LORA_H -#define NET_LORA_H #include #include @@ -282,5 +282,4 @@ enum { } #endif -#endif /* NET_LORA_H */ /** @} */ diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index 396dc5925a91..8dd0cc2fdd5c 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_loramac LoRaMAC * @ingroup net @@ -19,8 +21,6 @@ * @author Alexandre Abadie */ -#ifndef NET_LORAMAC_H -#define NET_LORAMAC_H #include #include @@ -1120,7 +1120,6 @@ static inline uint32_t lora_time_on_air(size_t pkt_len, loramac_dr_idx_t dr, uin } #endif -#endif /* NET_LORAMAC_H */ /** * @} */ diff --git a/sys/include/net/lorawan/hdr.h b/sys/include/net/lorawan/hdr.h index 9444042ff837..936986bf5a6d 100644 --- a/sys/include/net/lorawan/hdr.h +++ b/sys/include/net/lorawan/hdr.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_lorawan_hdr LoRaWAN header * @ingroup net_lorawan @@ -19,8 +21,6 @@ * @author Jose Ignacio Alamos */ -#ifndef NET_LORAWAN_HDR_H -#define NET_LORAWAN_HDR_H #include #include @@ -297,5 +297,4 @@ static inline bool lorawan_ja_hdr_get_optneg(lorawan_join_accept_t *ja_hdr) } #endif -#endif /* NET_LORAWAN_HDR_H */ /** @} */ diff --git a/sys/include/net/mqttsn.h b/sys/include/net/mqttsn.h index ccc046c5edcd..f5483fc2c205 100644 --- a/sys/include/net/mqttsn.h +++ b/sys/include/net/mqttsn.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_mqttsn MQTT-SN Defines * @ingroup net @@ -20,8 +22,6 @@ * @author Hauke Petersen */ -#ifndef NET_MQTTSN_H -#define NET_MQTTSN_H #ifdef __cplusplus extern "C" { @@ -110,5 +110,4 @@ enum { } #endif -#endif /* NET_MQTTSN_H */ /** @} */ diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 3559c97dc398..0356e81ea874 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_nanocoap nanoCoAP small CoAP library * @ingroup net @@ -74,8 +76,6 @@ * @author Hauke Petersen */ -#ifndef NET_NANOCOAP_H -#define NET_NANOCOAP_H #include #include @@ -2443,5 +2443,4 @@ static inline uint32_t coap_get_observe(coap_pkt_t *pkt) #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_H */ /** @} */ diff --git a/sys/include/net/nanocoap/cache.h b/sys/include/net/nanocoap/cache.h index 8583b8c52702..4119f55a9de8 100644 --- a/sys/include/net/nanocoap/cache.h +++ b/sys/include/net/nanocoap/cache.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_nanocoap_cache nanoCoAP-Cache implementation * @ingroup net_nanocoap @@ -19,8 +21,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_NANOCOAP_CACHE_H -#define NET_NANOCOAP_CACHE_H #include #include @@ -269,5 +269,4 @@ static inline bool nanocoap_cache_entry_is_stale(const nanocoap_cache_entry_t *c #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_CACHE_H */ /** @} */ diff --git a/sys/include/net/nanocoap/fileserver.h b/sys/include/net/nanocoap/fileserver.h index bbf8685fa05f..125580e5a3f7 100644 --- a/sys/include/net/nanocoap/fileserver.h +++ b/sys/include/net/nanocoap/fileserver.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_nanocoap_fileserver CoAP file server * @ingroup net_nanocoap @@ -75,8 +77,6 @@ * @author chrysn */ -#ifndef NET_NANOCOAP_FILESERVER_H -#define NET_NANOCOAP_FILESERVER_H #ifdef __cplusplus extern "C" { @@ -156,6 +156,5 @@ ssize_t nanocoap_fileserver_handler(coap_pkt_t *pdu, uint8_t *buf, size_t len, } #endif -#endif /* NET_NANOCOAP_FILESERVER_H */ /** @} */ diff --git a/sys/include/net/nanocoap/fs.h b/sys/include/net/nanocoap/fs.h index f100fec47cf1..54010e096997 100644 --- a/sys/include/net/nanocoap/fs.h +++ b/sys/include/net/nanocoap/fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_nanosock * @brief nanoCoAP virtual file system @@ -16,8 +18,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_FS_H -#define NET_NANOCOAP_FS_H #include "mutex.h" #include "net/nanocoap_sock.h" @@ -63,5 +63,4 @@ extern const vfs_file_system_t nanocoap_fs_file_system; #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_FS_H */ /** @} */ diff --git a/sys/include/net/nanocoap/link_format.h b/sys/include/net/nanocoap/link_format.h index c33aa7790ede..15f2fe52858f 100644 --- a/sys/include/net/nanocoap/link_format.h +++ b/sys/include/net/nanocoap/link_format.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_nanosock * @brief NanoCoAP Link Format helper functions @@ -18,8 +20,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_LINK_FORMAT_H -#define NET_NANOCOAP_LINK_FORMAT_H #include "net/nanocoap_sock.h" @@ -74,5 +74,4 @@ int nanocoap_link_format_get_url(const char *url, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_LINK_FORMAT_H */ /** @} */ diff --git a/sys/include/net/nanocoap_sock.h b/sys/include/net/nanocoap_sock.h index 09220f145ea7..836727c72c7d 100644 --- a/sys/include/net/nanocoap_sock.h +++ b/sys/include/net/nanocoap_sock.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_nanosock nanoCoAP Sock * @ingroup net @@ -135,8 +137,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_NANOCOAP_SOCK_H -#define NET_NANOCOAP_SOCK_H #include #include @@ -1049,5 +1049,4 @@ int nanocoap_sock_block_request(coap_block_request_t *ctx, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_SOCK_H */ /** @} */ diff --git a/sys/include/net/nanocoap_vfs.h b/sys/include/net/nanocoap_vfs.h index c049c7720e27..8aa4184c7320 100644 --- a/sys/include/net/nanocoap_vfs.h +++ b/sys/include/net/nanocoap_vfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_nanosock * @brief VFS NanoCoAP helper functions @@ -17,8 +19,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_VFS_H -#define NET_NANOCOAP_VFS_H #include "net/nanocoap_sock.h" @@ -85,5 +85,4 @@ int nanocoap_vfs_put(nanocoap_sock_t *sock, const char *path, const char *src, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_VFS_H */ /** @} */ diff --git a/sys/include/net/ndp.h b/sys/include/net/ndp.h index 5cd82ef40f98..e6de0cae30cb 100644 --- a/sys/include/net/ndp.h +++ b/sys/include/net/ndp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ndp IPv6 neighbor discovery * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_NDP_H -#define NET_NDP_H #include @@ -396,5 +396,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_NDP_H */ /** @} */ diff --git a/sys/include/net/netdev_test.h b/sys/include/net/netdev_test.h index 22723b3cc2f5..74ae1380b9f7 100644 --- a/sys/include/net/netdev_test.h +++ b/sys/include/net/netdev_test.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_netdev_test netdev dummy test driver * @ingroup drivers_netdev @@ -75,8 +77,6 @@ * * @author Martine Lenders */ -#ifndef NET_NETDEV_TEST_H -#define NET_NETDEV_TEST_H #include "mutex.h" @@ -291,5 +291,4 @@ void netdev_test_reset(netdev_test_t *dev); } #endif -#endif /* NET_NETDEV_TEST_H */ /** @} */ diff --git a/sys/include/net/netif.h b/sys/include/net/netif.h index a208b372d0d4..858907e890d5 100644 --- a/sys/include/net/netif.h +++ b/sys/include/net/netif.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_netif Network interfaces * @ingroup net @@ -30,8 +32,6 @@ * @author Kaspar Schleiser * @author José Ignacio Alamos */ -#ifndef NET_NETIF_H -#define NET_NETIF_H #include #include @@ -265,5 +265,4 @@ void netifs_print_ipv6(const char *separator); } #endif -#endif /* NET_NETIF_H */ /** @} */ diff --git a/sys/include/net/netopt.h b/sys/include/net/netopt.h index 213418a7c33f..dd224b20aa9a 100644 --- a/sys/include/net/netopt.h +++ b/sys/include/net/netopt.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_netopt Netopt - Configuration options for network APIs * @ingroup net @@ -22,8 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_NETOPT_H -#define NET_NETOPT_H #include #include @@ -1085,5 +1085,4 @@ const char *netopt2str(netopt_t opt); } #endif -#endif /* NET_NETOPT_H */ /** @} */ diff --git a/sys/include/net/netstats.h b/sys/include/net/netstats.h index ef2e21f13ff4..925703377133 100644 --- a/sys/include/net/netstats.h +++ b/sys/include/net/netstats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_netstats Packet statistics per module * @ingroup net @@ -23,8 +25,6 @@ #include "net/l2util.h" #include "mutex.h" -#ifndef NET_NETSTATS_H -#define NET_NETSTATS_H #ifdef __cplusplus extern "C" { @@ -132,5 +132,4 @@ typedef struct { } #endif -#endif /* NET_NETSTATS_H */ /** @} */ diff --git a/sys/include/net/netstats/neighbor.h b/sys/include/net/netstats/neighbor.h index 923af66ebaa2..5e0613218e32 100644 --- a/sys/include/net/netstats/neighbor.h +++ b/sys/include/net/netstats/neighbor.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @ingroup net_netstats * @brief Records statistics about link layer neighbors @@ -16,8 +18,6 @@ * * @author Koen Zandberg */ -#ifndef NET_NETSTATS_NEIGHBOR_H -#define NET_NETSTATS_NEIGHBOR_H #include #include "net/netif.h" @@ -187,7 +187,6 @@ bool netstats_nb_isfresh(netif_t *netif, netstats_nb_t *stats); } #endif -#endif /* NET_NETSTATS_NEIGHBOR_H */ /** * @} */ diff --git a/sys/include/net/ntp_packet.h b/sys/include/net/ntp_packet.h index d46e016ec479..341df38c75fd 100644 --- a/sys/include/net/ntp_packet.h +++ b/sys/include/net/ntp_packet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ntp_packet NTP Packet * @ingroup net @@ -19,8 +21,6 @@ * @author Martine Lenders */ -#ifndef NET_NTP_PACKET_H -#define NET_NTP_PACKET_H #include #include "byteorder.h" @@ -169,5 +169,4 @@ static inline ntp_mode_t ntp_packet_get_mode(ntp_packet_t *packet) } #endif -#endif /* NET_NTP_PACKET_H */ /** @} */ diff --git a/sys/include/net/packet.h b/sys/include/net/packet.h index 5bc8ea68efbe..e30e5733c71c 100644 --- a/sys/include/net/packet.h +++ b/sys/include/net/packet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_packet Packet interface on device level * @ingroup net @@ -18,8 +20,6 @@ * @author Oliver Hahm */ -#ifndef NET_PACKET_H -#define NET_PACKET_H #ifdef __cplusplus extern "C" { @@ -45,4 +45,3 @@ struct sockaddr_ll { /** * @} */ -#endif /* NET_PACKET_H */ diff --git a/sys/include/net/ppp/hdr.h b/sys/include/net/ppp/hdr.h index 9e0f74cb1f21..8ecb40f130c3 100644 --- a/sys/include/net/ppp/hdr.h +++ b/sys/include/net/ppp/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_ppphdr Point-to-Point Protocol Header * @ingroup net_ppp @@ -18,8 +20,6 @@ * @author José Ignacio Alamos */ -#ifndef NET_PPP_HDR_H -#define NET_PPP_HDR_H #include @@ -62,5 +62,4 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* NET_PPP_HDR_H */ /** @} */ diff --git a/sys/include/net/ppptype.h b/sys/include/net/ppptype.h index d47bab908794..821233de88ef 100644 --- a/sys/include/net/ppptype.h +++ b/sys/include/net/ppptype.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_ppp Point-to-Point Protocol (PPP) Data Link Layer * @ingroup net @@ -23,8 +25,6 @@ * */ -#ifndef NET_PPPTYPE_H -#define NET_PPPTYPE_H #ifdef __cplusplus extern "C" { @@ -42,7 +42,6 @@ extern "C" { } #endif -#endif /* NET_PPPTYPE_H */ /** * @} */ diff --git a/sys/include/net/protnum.h b/sys/include/net/protnum.h index 54b48d7be686..fce07e5fb5b9 100644 --- a/sys/include/net/protnum.h +++ b/sys/include/net/protnum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_protnum Protocol Numbers * @ingroup net @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef NET_PROTNUM_H -#define NET_PROTNUM_H #ifdef __cplusplus extern "C" { @@ -181,5 +181,4 @@ extern "C" { } #endif -#endif /* NET_PROTNUM_H */ /** @} */ diff --git a/sys/include/net/rpl/rpl_netstats.h b/sys/include/net/rpl/rpl_netstats.h index 4c9aa3057a01..847f8fcbca6b 100644 --- a/sys/include/net/rpl/rpl_netstats.h +++ b/sys/include/net/rpl/rpl_netstats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_netstats_rpl Packet statistics for RPL * @ingroup net_netstats @@ -20,8 +22,6 @@ #include -#ifndef NET_RPL_RPL_NETSTATS_H -#define NET_RPL_RPL_NETSTATS_H #ifdef __cplusplus extern "C" { @@ -56,5 +56,4 @@ typedef struct { } #endif -#endif /* NET_RPL_RPL_NETSTATS_H */ /** @} */ diff --git a/sys/include/net/sixlowpan.h b/sys/include/net/sixlowpan.h index 773b60048cfb..c86f9a772efe 100644 --- a/sys/include/net/sixlowpan.h +++ b/sys/include/net/sixlowpan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sixlowpan 6LoWPAN * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_H -#define NET_SIXLOWPAN_H #include #include @@ -343,5 +343,4 @@ void sixlowpan_print(uint8_t *data, size_t size); } #endif -#endif /* NET_SIXLOWPAN_H */ /** @} */ diff --git a/sys/include/net/sixlowpan/nd.h b/sys/include/net/sixlowpan/nd.h index 6438651c5b4b..4db6d3e1a659 100644 --- a/sys/include/net/sixlowpan/nd.h +++ b/sys/include/net/sixlowpan/nd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sixlowpan_nd 6LoWPAN Neighbor Discovery * @ingroup net_sixlowpan @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_ND_H -#define NET_SIXLOWPAN_ND_H #include @@ -278,5 +278,4 @@ static inline uint16_t gnrc_sixlowpan_nd_opt_get_ltime(const sixlowpan_nd_opt_ab } #endif -#endif /* NET_SIXLOWPAN_ND_H */ /** @} */ diff --git a/sys/include/net/sixlowpan/sfr.h b/sys/include/net/sixlowpan/sfr.h index 492da358d9b4..b06b96a5c92c 100644 --- a/sys/include/net/sixlowpan/sfr.h +++ b/sys/include/net/sixlowpan/sfr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sixlowpan_sfr 6LoWPAN selective fragment recovery * @ingroup net_sixlowpan @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_SFR_H -#define NET_SIXLOWPAN_SFR_H #include #include @@ -374,5 +374,4 @@ static inline bool sixlowpan_sfr_ack_is(const sixlowpan_sfr_t *hdr) } #endif -#endif /* NET_SIXLOWPAN_SFR_H */ /** @} */ diff --git a/sys/include/net/skald.h b/sys/include/net/skald.h index 91c3cbfa0f58..19eb1f8dcbaa 100644 --- a/sys/include/net/skald.h +++ b/sys/include/net/skald.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_skald Skald, who advertises to the world * @ingroup ble @@ -41,8 +43,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_H -#define NET_SKALD_H #include @@ -114,5 +114,4 @@ void skald_generate_random_addr(uint8_t *buf); } #endif -#endif /* NET_SKALD_H */ /** @} */ diff --git a/sys/include/net/skald/eddystone.h b/sys/include/net/skald/eddystone.h index 4778240909ab..619cc910a732 100644 --- a/sys/include/net/skald/eddystone.h +++ b/sys/include/net/skald/eddystone.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_skald_eddystone Skald meets Eddy * @ingroup ble_skald @@ -32,8 +34,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_EDDYSTONE_H -#define NET_SKALD_EDDYSTONE_H #include "net/eddystone.h" #include "net/skald.h" @@ -83,5 +83,4 @@ void skald_eddystone_url_adv(skald_ctx_t *ctx, } #endif -#endif /* NET_SKALD_EDDYSTONE_H */ /** @} */ diff --git a/sys/include/net/skald/ibeacon.h b/sys/include/net/skald/ibeacon.h index f3a82df4b4e5..12d51db74ffc 100644 --- a/sys/include/net/skald/ibeacon.h +++ b/sys/include/net/skald/ibeacon.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup ble_skald_ibeacon Skald about iBeacon * @ingroup ble_skald @@ -25,8 +27,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_IBEACON_H -#define NET_SKALD_IBEACON_H #include "net/skald.h" @@ -52,5 +52,4 @@ void skald_ibeacon_advertise(skald_ctx_t *ctx, const skald_uuid_t *uuid, } #endif -#endif /* NET_SKALD_IBEACON_H */ /** @} */ diff --git a/sys/include/net/sntp.h b/sys/include/net/sntp.h index 43c16e25b32e..3afa6f4a93d4 100644 --- a/sys/include/net/sntp.h +++ b/sys/include/net/sntp.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sntp Simple Network Time Protocol * @ingroup net @@ -20,8 +22,6 @@ * @author Martine Lenders */ -#ifndef NET_SNTP_H -#define NET_SNTP_H #include #include @@ -66,5 +66,4 @@ static inline uint64_t sntp_get_unix_usec(void) } #endif -#endif /* NET_SNTP_H */ /** @} */ diff --git a/sys/include/net/sock.h b/sys/include/net/sock.h index 2cbde66261d8..7c7cd1465589 100644 --- a/sys/include/net/sock.h +++ b/sys/include/net/sock.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock Sock API * @ingroup net @@ -99,8 +101,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_SOCK_H -#define NET_SOCK_H #include #include @@ -352,5 +352,4 @@ typedef uint8_t sock_aux_flags_t; } #endif -#endif /* NET_SOCK_H */ /** @} */ diff --git a/sys/include/net/sock/async.h b/sys/include/net/sock/async.h index 50cd5138516d..193681122c8c 100644 --- a/sys/include/net/sock/async.h +++ b/sys/include/net/sock/async.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_async Sock extension for asynchronous access * @ingroup net_sock @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_SOCK_ASYNC_H -#define NET_SOCK_ASYNC_H #include "net/sock/async/types.h" @@ -235,5 +235,4 @@ sock_async_ctx_t *sock_udp_get_async_ctx(sock_udp_t *sock); } #endif -#endif /* NET_SOCK_ASYNC_H */ /** @} */ diff --git a/sys/include/net/sock/async/event.h b/sys/include/net/sock/async/event.h index f0a960091754..cf963efd4549 100644 --- a/sys/include/net/sock/async/event.h +++ b/sys/include/net/sock/async/event.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_async_event Asynchronous sock with event API * @ingroup net_sock @@ -165,8 +167,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_ASYNC_EVENT_H -#define NET_SOCK_ASYNC_EVENT_H #include "event.h" /* guard required since `sock_dtls_types.h` might not be provided */ @@ -317,5 +317,4 @@ void sock_event_close(sock_async_ctx_t *async_ctx); } #endif -#endif /* NET_SOCK_ASYNC_EVENT_H */ /** @} */ diff --git a/sys/include/net/sock/async/types.h b/sys/include/net/sock/async/types.h index 8af2c039b1b3..b1942bfff1f8 100644 --- a/sys/include/net/sock/async/types.h +++ b/sys/include/net/sock/async/types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_sock_async Sock extension for asynchronous access * @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_SOCK_ASYNC_TYPES_H -#define NET_SOCK_ASYNC_TYPES_H #ifdef __cplusplus extern "C" { @@ -176,5 +176,4 @@ typedef void (*sock_udp_cb_t)(sock_udp_t *sock, sock_async_flags_t flags, } #endif -#endif /* NET_SOCK_ASYNC_TYPES_H */ /** @} */ diff --git a/sys/include/net/sock/config.h b/sys/include/net/sock/config.h index 33b4dffd6ed2..9cccbb5a88f8 100644 --- a/sys/include/net/sock/config.h +++ b/sys/include/net/sock/config.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_util_conf SOCK utility functions compile configurations * @ingroup net_sock_conf @@ -18,8 +20,6 @@ * @author Hauke Petersen */ -#ifndef NET_SOCK_CONFIG_H -#define NET_SOCK_CONFIG_H #ifdef __cplusplus extern "C" { @@ -66,5 +66,4 @@ extern "C" { } #endif -#endif /* NET_SOCK_CONFIG_H */ /** @} */ diff --git a/sys/include/net/sock/dns.h b/sys/include/net/sock/dns.h index 3ceee7849571..a95b2c48e1ab 100644 --- a/sys/include/net/sock/dns.h +++ b/sys/include/net/sock/dns.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_dns DNS sock API * @ingroup net_sock @@ -21,8 +23,6 @@ * @author Hendrik van Essen */ -#ifndef NET_SOCK_DNS_H -#define NET_SOCK_DNS_H #include #include @@ -114,5 +114,4 @@ extern sock_udp_ep_t sock_dns_server; } #endif -#endif /* NET_SOCK_DNS_H */ /** @} */ diff --git a/sys/include/net/sock/dodtls.h b/sys/include/net/sock/dodtls.h index 49508f73cb5e..7ff213ab6ca4 100644 --- a/sys/include/net/sock/dodtls.h +++ b/sys/include/net/sock/dodtls.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_dodtls DNS over DTLS sock API * @ingroup net_sock @@ -29,8 +31,6 @@ * @author Martine S. Lenders */ -#ifndef NET_SOCK_DODTLS_H -#define NET_SOCK_DODTLS_H #include "net/sock/dtls.h" #include "net/sock/udp.h" @@ -143,5 +143,4 @@ int sock_dodtls_set_server(const sock_udp_ep_t *server, } #endif -#endif /* NET_SOCK_DODTLS_H */ /** @} */ diff --git a/sys/include/net/sock/dtls.h b/sys/include/net/sock/dtls.h index c03a14b35b6b..753da5b18f94 100644 --- a/sys/include/net/sock/dtls.h +++ b/sys/include/net/sock/dtls.h @@ -10,6 +10,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_dtls DTLS sock API * @ingroup net_sock net_dtls @@ -527,8 +529,6 @@ * @author Leandro Lanzieri */ -#ifndef NET_SOCK_DTLS_H -#define NET_SOCK_DTLS_H #include #include @@ -1124,5 +1124,4 @@ void sock_dtls_close(sock_dtls_t *sock); } #endif -#endif /* NET_SOCK_DTLS_H */ /** @} */ diff --git a/sys/include/net/sock/dtls/creds.h b/sys/include/net/sock/dtls/creds.h index 42cfca6ead29..dd09dc9678ef 100644 --- a/sys/include/net/sock/dtls/creds.h +++ b/sys/include/net/sock/dtls/creds.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_dtls_creds DTLS sock credentials API * @ingroup net_sock_dtls @@ -18,8 +20,6 @@ * @author Leandro Lanzieri */ -#ifndef NET_SOCK_DTLS_CREDS_H -#define NET_SOCK_DTLS_CREDS_H #include "net/sock/udp.h" @@ -148,5 +148,4 @@ void sock_dtls_set_rpk_cb(sock_dtls_t *sock, sock_dtls_rpk_cb_t cb); } #endif -#endif /* NET_SOCK_DTLS_CREDS_H */ /** @} */ diff --git a/sys/include/net/sock/ip.h b/sys/include/net/sock/ip.h index d215a91f1412..32646a990150 100644 --- a/sys/include/net/sock/ip.h +++ b/sys/include/net/sock/ip.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_ip Raw IPv4/IPv6 sock API * @ingroup net_sock @@ -265,8 +267,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_IP_H -#define NET_SOCK_IP_H #include #include @@ -707,5 +707,4 @@ static inline ssize_t sock_ip_send(sock_ip_t *sock, } #endif -#endif /* NET_SOCK_IP_H */ /** @} */ diff --git a/sys/include/net/sock/tcp.h b/sys/include/net/sock/tcp.h index ed6ebfbc95ad..95de4b21c0aa 100644 --- a/sys/include/net/sock/tcp.h +++ b/sys/include/net/sock/tcp.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_tcp TCP sock API * @ingroup net_sock @@ -296,8 +298,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_TCP_H -#define NET_SOCK_TCP_H #include #include @@ -547,5 +547,4 @@ ssize_t sock_tcp_write(sock_tcp_t *sock, const void *data, size_t len); #include "sock_types.h" -#endif /* NET_SOCK_TCP_H */ /** @} */ diff --git a/sys/include/net/sock/udp.h b/sys/include/net/sock/udp.h index 4daca4d449b1..0d7005e3e791 100644 --- a/sys/include/net/sock/udp.h +++ b/sys/include/net/sock/udp.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_sock_udp UDP sock API * @ingroup net_sock @@ -265,8 +267,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_UDP_H -#define NET_SOCK_UDP_H #include #include @@ -848,5 +848,4 @@ static inline bool sock_udp_ep_is_v6(const sock_udp_ep_t *ep) } #endif -#endif /* NET_SOCK_UDP_H */ /** @} */ diff --git a/sys/include/net/someip.h b/sys/include/net/someip.h index 510fb36fe5af..67920ebe8a1d 100644 --- a/sys/include/net/someip.h +++ b/sys/include/net/someip.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_someip SOME/IP * @ingroup net @@ -18,8 +20,6 @@ * * @author Jannes Volkens */ -#ifndef NET_SOMEIP_H -#define NET_SOMEIP_H #ifdef __cplusplus extern "C" { @@ -69,5 +69,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_SOMEIP_H */ /** @} */ diff --git a/sys/include/net/tcp.h b/sys/include/net/tcp.h index 4aad1559ada8..21de35ddb864 100644 --- a/sys/include/net/tcp.h +++ b/sys/include/net/tcp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_tcp TCP * @ingroup net @@ -19,8 +21,6 @@ * @author Simon Brummer */ -#ifndef NET_TCP_H -#define NET_TCP_H #include "byteorder.h" @@ -87,5 +87,4 @@ void tcp_hdr_print(tcp_hdr_t *hdr); } #endif -#endif /* NET_TCP_H */ /** @} */ diff --git a/sys/include/net/telnet.h b/sys/include/net/telnet.h index 6823206fed3e..353b2a60541f 100644 --- a/sys/include/net/telnet.h +++ b/sys/include/net/telnet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_telnet_stdio STDIO over telnet * @ingroup sys_stdio @@ -41,8 +43,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_TELNET_H -#define NET_TELNET_H #include "net/sock/tcp.h" @@ -119,5 +119,4 @@ void telnet_cb_disconneced(void); } #endif -#endif /* NET_TELNET_H */ /** @} */ diff --git a/sys/include/net/udp.h b/sys/include/net/udp.h index 164e5165fbe4..968b2a54e06d 100644 --- a/sys/include/net/udp.h +++ b/sys/include/net/udp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_udp UDP * @ingroup net @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_UDP_H -#define NET_UDP_H #include "byteorder.h" @@ -50,5 +50,4 @@ void udp_hdr_print(udp_hdr_t *hdr); } #endif -#endif /* NET_UDP_H */ /** @} */ diff --git a/sys/include/net/uhcp.h b/sys/include/net/uhcp.h index 8e93d3b6925d..9a4a41974240 100644 --- a/sys/include/net/uhcp.h +++ b/sys/include/net/uhcp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_uhcp UHCP * @ingroup net @@ -27,8 +29,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_UHCP_H -#define NET_UHCP_H #include #include @@ -185,5 +185,4 @@ int udp_sendto(uint8_t *buf, size_t len, uint8_t *dst, uint16_t dst_port, uhcp_i } #endif -#endif /* NET_UHCP_H */ /** @} */ diff --git a/sys/include/net/utils.h b/sys/include/net/utils.h index 6a776fad8f95..72f838fe931b 100644 --- a/sys/include/net/utils.h +++ b/sys/include/net/utils.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_utils Network helper functions * @ingroup net @@ -19,8 +21,6 @@ * @author Hendrik van Essen */ -#ifndef NET_UTILS_H -#define NET_UTILS_H #include #include @@ -62,5 +62,4 @@ int netutils_get_ipv6(ipv6_addr_t *addr, netif_t **netif, const char *hostname); } #endif -#endif /* NET_UTILS_H */ /** @} */ diff --git a/sys/include/net/wifi.h b/sys/include/net/wifi.h index 74ce48dfddd0..ccf44cf34af8 100644 --- a/sys/include/net/wifi.h +++ b/sys/include/net/wifi.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_wifi Wi-Fi * @ingroup net @@ -18,8 +20,6 @@ * @author Fabian Hüßler */ -#ifndef NET_WIFI_H -#define NET_WIFI_H #include @@ -163,5 +163,4 @@ typedef struct wifi_security_wpa_enterprise { } #endif -#endif /* NET_WIFI_H */ /** @} */ diff --git a/sys/include/net/wifi_scan_list.h b/sys/include/net/wifi_scan_list.h index d5eb774561a2..6af286d58377 100644 --- a/sys/include/net/wifi_scan_list.h +++ b/sys/include/net/wifi_scan_list.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 net_wifi_scan_list List of scanned WiFis access points * @ingroup net @@ -17,8 +20,6 @@ * @author Fabian Hüßler */ -#ifndef NET_WIFI_SCAN_LIST_H -#define NET_WIFI_SCAN_LIST_H #include @@ -82,5 +83,4 @@ static inline unsigned wifi_scan_list_to_array(const wifi_scan_list_t *list, } #endif -#endif /* NET_WIFI_SCAN_LIST_H */ /** @} */ diff --git a/sys/include/net/zep.h b/sys/include/net/zep.h index 795f2edce535..4cb427dfc9e6 100644 --- a/sys/include/net/zep.h +++ b/sys/include/net/zep.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_zep ZigBee Encapsulation Protocol * @ingroup net @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_ZEP_H -#define NET_ZEP_H #include @@ -100,5 +100,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_ZEP_H */ /** @} */ diff --git a/sys/include/od.h b/sys/include/od.h index 6e58d1ce9d31..6b67308a5fe2 100644 --- a/sys/include/od.h +++ b/sys/include/od.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_od Object dump * @ingroup sys @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef OD_H -#define OD_H #ifdef __cplusplus extern "C" { @@ -71,5 +71,4 @@ static inline void od_hex_dump(const void *data, size_t data_len, uint8_t width) } #endif -#endif /* OD_H */ /** @} */ diff --git a/sys/include/phydat.h b/sys/include/phydat.h index f89d996a43ef..8edfda5a5abb 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_phydat Phydat * @ingroup sys @@ -32,8 +34,6 @@ * @author Hauke Petersen */ -#ifndef PHYDAT_H -#define PHYDAT_H #include #include @@ -324,5 +324,4 @@ int64_t phydat_unix(int16_t year, int16_t month, int16_t day, } #endif -#endif /* PHYDAT_H */ /** @} */ diff --git a/sys/include/pipe.h b/sys/include/pipe.h index c111ee37c338..3c67aab3a45b 100644 --- a/sys/include/pipe.h +++ b/sys/include/pipe.h @@ -16,6 +16,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#pragma once + /** * @defgroup sys_pipe Pipe IPC * @ingroup sys @@ -32,8 +34,6 @@ * @author René Kijewski */ -#ifndef PIPE_H -#define PIPE_H #include @@ -121,7 +121,6 @@ void pipe_free(pipe_t *rp); } #endif -#endif /* PIPE_H */ /** * @} */ diff --git a/sys/include/pm_layered.h b/sys/include/pm_layered.h index f0c2236654cd..e92bc364b6b8 100644 --- a/sys/include/pm_layered.h +++ b/sys/include/pm_layered.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_pm_layered Layered PM Infrastructure * @ingroup sys @@ -32,8 +34,6 @@ * @author Kaspar Schleiser */ -#ifndef PM_LAYERED_H -#define PM_LAYERED_H #include #include "periph_cpu.h" @@ -105,5 +105,4 @@ pm_blocker_t pm_get_blocker(void); } #endif -#endif /* PM_LAYERED_H */ /** @} */ diff --git a/sys/include/progress_bar.h b/sys/include/progress_bar.h index 5c7f9b0ea3da..6ef8764098eb 100644 --- a/sys/include/progress_bar.h +++ b/sys/include/progress_bar.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_progress_bar * @{ @@ -16,8 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PROGRESS_BAR_H -#define PROGRESS_BAR_H #include #include @@ -129,4 +129,3 @@ void progress_bar_update_multi(progress_bar_t *progress_bar_list, uint8_t len); #endif /** @} */ -#endif /* PROGRESS_BAR_H */ diff --git a/sys/include/ps.h b/sys/include/ps.h index 78f2871c487a..3bd8d7f57f56 100644 --- a/sys/include/ps.h +++ b/sys/include/ps.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_ps PS * @ingroup sys @@ -19,8 +21,6 @@ * @author Oliver Hahm */ -#ifndef PS_H -#define PS_H #ifdef __cplusplus extern "C" { @@ -35,5 +35,4 @@ void ps(void); } #endif -#endif /* PS_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/aead/algorithm.h b/sys/include/psa_crypto/psa/aead/algorithm.h index 7750f7449e0d..a5ed94c78240 100644 --- a/sys/include/psa_crypto/psa/aead/algorithm.h +++ b/sys/include/psa_crypto/psa/aead/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_AEAD_ALGORITHM_H -#define PSA_CRYPTO_PSA_AEAD_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -225,5 +225,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_AEAD_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/algorithm.h b/sys/include/psa_crypto/psa/algorithm.h index d401ae1ab4b8..48a8ca198434 100644 --- a/sys/include/psa_crypto/psa/algorithm.h +++ b/sys/include/psa_crypto/psa/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ALGORITHM_H -#define PSA_CRYPTO_PSA_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -54,5 +54,4 @@ typedef uint32_t psa_algorithm_t; } #endif -#endif /* PSA_CRYPTO_PSA_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h b/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h index e55a3073e0da..572708bf0107 100644 --- a/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h +++ b/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H -#define PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -98,5 +98,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h index 78f4c37928e4..73facb78a8b1 100644 --- a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h +++ b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H -#define PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -630,5 +630,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/cipher/algorithm.h b/sys/include/psa_crypto/psa/cipher/algorithm.h index e09d2f2c6beb..7a8635def3ef 100644 --- a/sys/include/psa_crypto/psa/cipher/algorithm.h +++ b/sys/include/psa_crypto/psa/cipher/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H -#define PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -337,5 +337,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto.h b/sys/include/psa_crypto/psa/crypto.h index 8405a47d7d6d..de9ea08e9909 100644 --- a/sys/include/psa_crypto/psa/crypto.h +++ b/sys/include/psa_crypto/psa/crypto.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_H -#define PSA_CRYPTO_PSA_CRYPTO_H #ifdef __cplusplus extern "C" { @@ -4072,5 +4072,4 @@ psa_status_t psa_verify_message(psa_key_id_t key, } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_contexts.h b/sys/include/psa_crypto/psa/crypto_contexts.h index eea3e0041b22..2870afb6a5c2 100644 --- a/sys/include/psa_crypto/psa/crypto_contexts.h +++ b/sys/include/psa_crypto/psa/crypto_contexts.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -17,8 +19,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H -#define PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H #ifdef __cplusplus extern "C" { @@ -105,5 +105,4 @@ typedef struct { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_includes.h b/sys/include/psa_crypto/psa/crypto_includes.h index 3b18f36bcfe6..20072c932b81 100644 --- a/sys/include/psa_crypto/psa/crypto_includes.h +++ b/sys/include/psa_crypto/psa/crypto_includes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -16,8 +18,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H -#define PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H #ifdef __cplusplus extern "C" { @@ -57,5 +57,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_se_config.h b/sys/include/psa_crypto/psa/crypto_se_config.h index a8df8bbceb98..668427ab9ce2 100644 --- a/sys/include/psa_crypto/psa/crypto_se_config.h +++ b/sys/include/psa_crypto/psa/crypto_se_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -17,8 +19,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H -#define PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H #ifdef __cplusplus extern "C" { @@ -44,5 +44,4 @@ typedef union { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_sizes.h b/sys/include/psa_crypto/psa/crypto_sizes.h index fcd0f8ba2372..ffe7a631d827 100644 --- a/sys/include/psa_crypto/psa/crypto_sizes.h +++ b/sys/include/psa_crypto/psa/crypto_sizes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -22,8 +24,6 @@ * These macros will be implemented successively in the future. */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_SIZES_H -#define PSA_CRYPTO_PSA_CRYPTO_SIZES_H #ifdef __cplusplus extern "C" { @@ -1111,5 +1111,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_SIZES_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_struct.h b/sys/include/psa_crypto/psa/crypto_struct.h index 3551aa9196af..4b2d34492d94 100644 --- a/sys/include/psa_crypto/psa/crypto_struct.h +++ b/sys/include/psa_crypto/psa/crypto_struct.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -17,8 +19,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_STRUCT_H -#define PSA_CRYPTO_PSA_CRYPTO_STRUCT_H #ifdef __cplusplus extern "C" { @@ -186,5 +186,4 @@ static inline struct psa_mac_operation_s psa_mac_operation_init(void) } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_STRUCT_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_types.h b/sys/include/psa_crypto/psa/crypto_types.h index 0d4e50296f14..7f8a39ae875b 100644 --- a/sys/include/psa_crypto/psa/crypto_types.h +++ b/sys/include/psa_crypto/psa/crypto_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -17,8 +19,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_TYPES_H -#define PSA_CRYPTO_PSA_CRYPTO_TYPES_H #ifdef __cplusplus extern "C" { @@ -209,5 +209,4 @@ typedef struct psa_cipher_operation_s psa_cipher_operation_t; } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_TYPES_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/crypto_values.h b/sys/include/psa_crypto/psa/crypto_values.h index 538a506d66ab..c71f07732b62 100644 --- a/sys/include/psa_crypto/psa/crypto_values.h +++ b/sys/include/psa_crypto/psa/crypto_values.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -22,8 +24,6 @@ * These macros will be implemented successively in the future. */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_VALUES_H -#define PSA_CRYPTO_PSA_CRYPTO_VALUES_H #ifdef __cplusplus extern "C" { @@ -189,5 +189,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_VALUES_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/error.h b/sys/include/psa_crypto/psa/error.h index 26a3aa4f0237..ad089adbfe4b 100644 --- a/sys/include/psa_crypto/psa/error.h +++ b/sys/include/psa_crypto/psa/error.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -21,8 +23,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ERROR_H -#define PSA_CRYPTO_PSA_ERROR_H #ifdef __cplusplus extern "C" { @@ -212,5 +212,4 @@ typedef int32_t psa_status_t; } #endif -#endif /* PSA_CRYPTO_PSA_ERROR_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/hash/algorithm.h b/sys/include/psa_crypto/psa/hash/algorithm.h index 4d73a15b5295..4605a4db4c39 100644 --- a/sys/include/psa_crypto/psa/hash/algorithm.h +++ b/sys/include/psa_crypto/psa/hash/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_HASH_ALGORITHM_H -#define PSA_CRYPTO_PSA_HASH_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -239,5 +239,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_HASH_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/attributes.h b/sys/include/psa_crypto/psa/key/attributes.h index 70f5c33b3a89..0d5cab250bf2 100644 --- a/sys/include/psa_crypto/psa/key/attributes.h +++ b/sys/include/psa_crypto/psa/key/attributes.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H -#define PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H #ifdef __cplusplus extern "C" { @@ -182,5 +182,4 @@ static inline psa_key_attributes_t psa_key_attributes_init(void) } #endif -#endif /* PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/bits.h b/sys/include/psa_crypto/psa/key/bits.h index 80e90dd29901..d7612a3b8ce3 100644 --- a/sys/include/psa_crypto/psa/key/bits.h +++ b/sys/include/psa_crypto/psa/key/bits.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_BITS_H -#define PSA_CRYPTO_PSA_KEY_BITS_H #ifdef __cplusplus extern "C" { @@ -37,5 +37,4 @@ typedef uint16_t psa_key_bits_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_BITS_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/id.h b/sys/include/psa_crypto/psa/key/id.h index a3df0ea159f9..d98f946da452 100644 --- a/sys/include/psa_crypto/psa/key/id.h +++ b/sys/include/psa_crypto/psa/key/id.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_ID_H -#define PSA_CRYPTO_PSA_KEY_ID_H #ifdef __cplusplus extern "C" { @@ -68,5 +68,4 @@ typedef uint32_t psa_key_id_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_ID_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/lifetime.h b/sys/include/psa_crypto/psa/key/lifetime.h index b5ea672f996f..c4e89c15c104 100644 --- a/sys/include/psa_crypto/psa/key/lifetime.h +++ b/sys/include/psa_crypto/psa/key/lifetime.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_LIFETIME_H -#define PSA_CRYPTO_PSA_KEY_LIFETIME_H #ifdef __cplusplus extern "C" { @@ -278,5 +278,4 @@ typedef uint32_t psa_key_location_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_LIFETIME_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/type.h b/sys/include/psa_crypto/psa/key/type.h index 46e44bf5039e..51febdf07dfb 100644 --- a/sys/include/psa_crypto/psa/key/type.h +++ b/sys/include/psa_crypto/psa/key/type.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_TYPE_H -#define PSA_CRYPTO_PSA_KEY_TYPE_H #ifdef __cplusplus extern "C" { @@ -877,5 +877,4 @@ typedef uint8_t psa_dh_family_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_TYPE_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key/usage.h b/sys/include/psa_crypto/psa/key/usage.h index 1f5d33c7602a..9f0e78910341 100644 --- a/sys/include/psa_crypto/psa/key/usage.h +++ b/sys/include/psa_crypto/psa/key/usage.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_USAGE_H -#define PSA_CRYPTO_PSA_KEY_USAGE_H #ifdef __cplusplus extern "C" { @@ -220,5 +220,4 @@ typedef uint32_t psa_key_usage_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_USAGE_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key_agreement/algorithm.h b/sys/include/psa_crypto/psa/key_agreement/algorithm.h index faed7a133d63..d371383d04ad 100644 --- a/sys/include/psa_crypto/psa/key_agreement/algorithm.h +++ b/sys/include/psa_crypto/psa/key_agreement/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H -#define PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -251,5 +251,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/key_derivation/algorithm.h b/sys/include/psa_crypto/psa/key_derivation/algorithm.h index 730b235b3d48..1d1871b73962 100644 --- a/sys/include/psa_crypto/psa/key_derivation/algorithm.h +++ b/sys/include/psa_crypto/psa/key_derivation/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H -#define PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -338,5 +338,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H */ /** @} */ diff --git a/sys/include/psa_crypto/psa/mac/algorithm.h b/sys/include/psa_crypto/psa/mac/algorithm.h index 164415aeb9f7..fd7f2efa7a6b 100644 --- a/sys/include/psa_crypto/psa/mac/algorithm.h +++ b/sys/include/psa_crypto/psa/mac/algorithm.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -19,8 +21,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_MAC_ALGORITHM_H -#define PSA_CRYPTO_PSA_MAC_ALGORITHM_H #ifdef __cplusplus extern "C" { @@ -222,5 +222,4 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_MAC_ALGORITHM_H */ /** @} */ diff --git a/sys/include/ptrtag.h b/sys/include/ptrtag.h index 187477b2f91d..85f0223b802d 100644 --- a/sys/include/ptrtag.h +++ b/sys/include/ptrtag.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ptrtag Helpers for pointer tagging * @ingroup sys @@ -58,8 +60,6 @@ * @author Marian Buschsieweke */ -#ifndef PTRTAG_H -#define PTRTAG_H #include #include @@ -122,5 +122,4 @@ static inline uint8_t ptrtag_tag(void *tagged_ptr) } #endif -#endif /* PTRTAG_H */ /** @} */ diff --git a/sys/include/puf_sram.h b/sys/include/puf_sram.h index 1c5cbdb549d8..bec0d9966507 100644 --- a/sys/include/puf_sram.h +++ b/sys/include/puf_sram.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_puf_sram SRAM PUF * @ingroup sys @@ -51,8 +53,6 @@ * * @author Peter Kietzmann */ -#ifndef PUF_SRAM_H -#define PUF_SRAM_H #ifdef __cplusplus extern "C" { @@ -129,4 +129,3 @@ bool puf_sram_softreset(void); } #endif /** @} */ -#endif /* PUF_SRAM_H */ diff --git a/sys/include/random.h b/sys/include/random.h index d762149383bc..c2dbca550cdf 100644 --- a/sys/include/random.h +++ b/sys/include/random.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_random Random * @ingroup sys @@ -32,8 +34,6 @@ * @brief Common interface to the software PRNG */ -#ifndef RANDOM_H -#define RANDOM_H #include #include @@ -138,5 +138,4 @@ double random_res53(void); } #endif -#endif /* RANDOM_H */ /** @} */ diff --git a/sys/include/riotboot/bootloader_selection.h b/sys/include/riotboot/bootloader_selection.h index 246d695e15dd..5eb041176671 100644 --- a/sys/include/riotboot/bootloader_selection.h +++ b/sys/include/riotboot/bootloader_selection.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 bootloaders * * @{ @@ -19,8 +22,6 @@ * to the riotboot_dfu application that isn't written in C++ and not included * from anywhere else either, but still here for consistency (and because * otherwise the checks complain) */ -#ifndef RIOTBOOT_BOOTLOADER_SELECTION_H -#define RIOTBOOT_BOOTLOADER_SELECTION_H #ifdef __cplusplus extern "C" { @@ -82,6 +83,5 @@ extern "C" { } #endif -#endif /* RIOTBOOT_BOOTLOADER_SELECTION_H */ /** @} */ diff --git a/sys/include/riotboot/flashwrite.h b/sys/include/riotboot/flashwrite.h index c76a7b2dc3cb..6577c7c7e799 100644 --- a/sys/include/riotboot/flashwrite.h +++ b/sys/include/riotboot/flashwrite.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_flashwrite riotboot flash writer * @ingroup sys @@ -56,8 +58,6 @@ * @} */ -#ifndef RIOTBOOT_FLASHWRITE_H -#define RIOTBOOT_FLASHWRITE_H #ifdef __cplusplus extern "C" { @@ -276,5 +276,3 @@ int riotboot_flashwrite_verify_sha256(const uint8_t *sha256_digest, #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_FLASHWRITE_H */ diff --git a/sys/include/riotboot/hdr.h b/sys/include/riotboot/hdr.h index a04acfc3e476..180c4d8953df 100644 --- a/sys/include/riotboot/hdr.h +++ b/sys/include/riotboot/hdr.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_hdr RIOT header helpers and tools * @ingroup sys @@ -29,8 +31,6 @@ * @} */ -#ifndef RIOTBOOT_HDR_H -#define RIOTBOOT_HDR_H #ifdef __cplusplus extern "C" { @@ -86,5 +86,3 @@ uint32_t riotboot_hdr_checksum(const riotboot_hdr_t *riotboot_hdr); #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_HDR_H */ diff --git a/sys/include/riotboot/magic.h b/sys/include/riotboot/magic.h index 5ca8fcaf2f11..23bc40021da7 100644 --- a/sys/include/riotboot/magic.h +++ b/sys/include/riotboot/magic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_magic Magic values for riotboot * @ingroup sys @@ -19,8 +21,6 @@ * @} */ -#ifndef RIOTBOOT_MAGIC_H -#define RIOTBOOT_MAGIC_H #include "riotboot/hdr.h" @@ -43,5 +43,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_MAGIC_H */ diff --git a/sys/include/riotboot/serial.h b/sys/include/riotboot/serial.h index fc2ccd77f6f7..7f780a0d85e2 100644 --- a/sys/include/riotboot/serial.h +++ b/sys/include/riotboot/serial.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_serial Serial Bootloader Protocol * @ingroup sys @@ -19,8 +21,6 @@ * @} */ -#ifndef RIOTBOOT_SERIAL_H -#define RIOTBOOT_SERIAL_H #ifdef __cplusplus extern "C" { @@ -116,5 +116,3 @@ int riotboot_serial_loader(void); #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_SERIAL_H */ diff --git a/sys/include/riotboot/slot.h b/sys/include/riotboot/slot.h index f49da61c9900..3a43c205762e 100644 --- a/sys/include/riotboot/slot.h +++ b/sys/include/riotboot/slot.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_slot Helpers to manipulate partitions (slots) on internal flash * @ingroup sys @@ -22,8 +24,6 @@ * @} */ -#ifndef RIOTBOOT_SLOT_H -#define RIOTBOOT_SLOT_H #ifdef __cplusplus extern "C" { @@ -142,5 +142,3 @@ extern const riotboot_hdr_t *const riotboot_slots[]; #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_SLOT_H */ diff --git a/sys/include/riotboot/usb_dfu.h b/sys/include/riotboot/usb_dfu.h index f1157099fe40..eaa3c56cec3e 100644 --- a/sys/include/riotboot/usb_dfu.h +++ b/sys/include/riotboot/usb_dfu.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_riotboot_usb_dfu Initialization of USB Device Firmware * Upgrade for riotboot @@ -20,8 +22,6 @@ * @} */ -#ifndef RIOTBOOT_USB_DFU_H -#define RIOTBOOT_USB_DFU_H #include "riotboot/hdr.h" @@ -53,5 +53,3 @@ void riotboot_usb_dfu_init(unsigned forced); #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_USB_DFU_H */ diff --git a/sys/include/rtc_utils.h b/sys/include/rtc_utils.h index 88a983502ab7..7a20c605f0cc 100644 --- a/sys/include/rtc_utils.h +++ b/sys/include/rtc_utils.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_rtc_utils RTC helpers * @ingroup sys @@ -16,8 +18,6 @@ * @author Benjamin Valentin */ -#ifndef RTC_UTILS_H -#define RTC_UTILS_H #include #include @@ -96,5 +96,4 @@ bool rtc_tm_valid(const struct tm *t); } #endif -#endif /* RTC_UTILS_H */ /** @} */ diff --git a/sys/include/saul_reg.h b/sys/include/saul_reg.h index 65dca2e29f4d..c5fc57b6b803 100644 --- a/sys/include/saul_reg.h +++ b/sys/include/saul_reg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_saul_reg SAUL registry * @ingroup sys @@ -21,8 +23,6 @@ * @author Hauke Petersen */ -#ifndef SAUL_REG_H -#define SAUL_REG_H #include @@ -140,5 +140,4 @@ int saul_reg_write(saul_reg_t *dev, const phydat_t *data); } #endif -#endif /* SAUL_REG_H */ /** @} */ diff --git a/sys/include/sched_round_robin.h b/sys/include/sched_round_robin.h index 4e0e2381e72a..0fc81e00b418 100644 --- a/sys/include/sched_round_robin.h +++ b/sys/include/sched_round_robin.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sched_round_robin Round Robin Scheduler * @ingroup sys @@ -29,8 +31,6 @@ * @author Karl Fessel * */ -#ifndef SCHED_ROUND_ROBIN_H -#define SCHED_ROUND_ROBIN_H #ifdef __cplusplus extern "C" { @@ -83,5 +83,4 @@ void sched_round_robin_init(void); } #endif -#endif /* SCHED_ROUND_ROBIN_H */ /** @} */ diff --git a/sys/include/schedstatistics.h b/sys/include/schedstatistics.h index 7d10735273c5..72d74f5185bf 100644 --- a/sys/include/schedstatistics.h +++ b/sys/include/schedstatistics.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup schedstatistics Schedstatistics * @ingroup sys @@ -26,8 +28,6 @@ * */ -#ifndef SCHEDSTATISTICS_H -#define SCHEDSTATISTICS_H #include @@ -60,5 +60,4 @@ void init_schedstatistics(void); } #endif -#endif /* SCHEDSTATISTICS_H */ /** @} */ diff --git a/sys/include/sema.h b/sys/include/sema.h index 58488ede7f5a..69b95e2add8d 100644 --- a/sys/include/sema.h +++ b/sys/include/sema.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_sema Semaphores * @ingroup sys @@ -22,8 +24,6 @@ * @author Víctor Ariño */ -#ifndef SEMA_H -#define SEMA_H #include @@ -253,5 +253,4 @@ int sema_post(sema_t *sema); } #endif -#endif /* SEMA_H */ /** @} */ diff --git a/sys/include/sema_inv.h b/sys/include/sema_inv.h index e9cb4adb7341..b38a4d01374e 100644 --- a/sys/include/sema_inv.h +++ b/sys/include/sema_inv.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_sema_inv inverse Semaphores * @ingroup sys @@ -39,8 +41,6 @@ * @author Benjamin Valentin */ -#ifndef SEMA_INV_H -#define SEMA_INV_H #include "atomic_utils.h" #include "mutex.h" @@ -147,5 +147,4 @@ static inline int sema_inv_wait_timeout(sema_inv_t *s, uint32_t us) } #endif -#endif /* SEMA_INV_H */ /** @} */ diff --git a/sys/include/senml.h b/sys/include/senml.h index bae7d039f266..e6b321a3a27b 100644 --- a/sys/include/senml.h +++ b/sys/include/senml.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_senml SenML * @ingroup sys @@ -33,8 +35,6 @@ * @author Silke Hofstra */ -#ifndef SENML_H -#define SENML_H #include #include @@ -520,5 +520,4 @@ const char *senml_unit_to_str(senml_unit_t unit); } #endif -#endif /* SENML_H */ /** @} */ diff --git a/sys/include/senml/cbor.h b/sys/include/senml/cbor.h index 00676e7a8806..fe3900326114 100644 --- a/sys/include/senml/cbor.h +++ b/sys/include/senml/cbor.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_senml_cbor SenML CBOR * @ingroup sys_senml @@ -22,8 +24,6 @@ * @author Silke Hofstra */ -#ifndef SENML_CBOR_H -#define SENML_CBOR_H #include #include @@ -117,5 +117,4 @@ int senml_encode_data_cbor(nanocbor_encoder_t *enc, const senml_data_value_t *va } #endif -#endif /* SENML_CBOR_H */ /** @} */ diff --git a/sys/include/senml/phydat.h b/sys/include/senml/phydat.h index 8ebfb1a20065..bd28e81ad1d3 100644 --- a/sys/include/senml/phydat.h +++ b/sys/include/senml/phydat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_senml_phydat SenML Phydat * @ingroup sys_senml @@ -22,8 +24,6 @@ * @author Silke Hofstra */ -#ifndef SENML_PHYDAT_H -#define SENML_PHYDAT_H #include #include @@ -94,5 +94,4 @@ void phydat_to_senml_decimal(senml_value_t *senml, const phydat_t *phydat, const } #endif -#endif /* SENML_PHYDAT_H */ /** @} */ diff --git a/sys/include/senml/saul.h b/sys/include/senml/saul.h index 5ffa27c46fe3..2e14d29c0fd9 100644 --- a/sys/include/senml/saul.h +++ b/sys/include/senml/saul.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_senml_saul SenML SAUL * @ingroup sys_senml @@ -22,8 +24,6 @@ * @author Silke Hofstra */ -#ifndef SENML_SAUL_H -#define SENML_SAUL_H #include #include "nanocbor/nanocbor.h" @@ -72,5 +72,4 @@ size_t senml_saul_encode_cbor(uint8_t *buf, size_t len, saul_reg_t *reg); } #endif -#endif /* SENML_SAUL_H */ /** @} */ diff --git a/sys/include/seq.h b/sys/include/seq.h index e9f007b32e16..726000cf936a 100644 --- a/sys/include/seq.h +++ b/sys/include/seq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_seq * @{ @@ -19,8 +21,6 @@ * @author Cenk Gündoğan */ -#ifndef SEQ_H -#define SEQ_H #include #include @@ -391,4 +391,3 @@ static inline int seq64_compare(seq64_t s1, seq64_t s2) #endif /** @} */ -#endif /* SEQ_H */ diff --git a/sys/include/shell.h b/sys/include/shell.h index 0a8e527caf62..c1705a141252 100644 --- a/sys/include/shell.h +++ b/sys/include/shell.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_shell Shell * @ingroup sys @@ -44,8 +46,6 @@ * @brief Shell interface definition */ -#ifndef SHELL_H -#define SHELL_H #include #include "periph/pm.h" @@ -316,5 +316,4 @@ int shell_parse_file(const shell_command_t *commands, } #endif -#endif /* SHELL_H */ /** @} */ diff --git a/sys/include/shell_lock.h b/sys/include/shell_lock.h index 8912be777635..a77580265418 100644 --- a/sys/include/shell_lock.h +++ b/sys/include/shell_lock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_shell_lock Shell lock * @ingroup sys @@ -21,8 +23,6 @@ * @brief Shell interface definition */ -#ifndef SHELL_LOCK_H -#define SHELL_LOCK_H #ifdef __cplusplus extern "C" { @@ -85,5 +85,4 @@ void shell_lock_auto_lock_refresh(void); } #endif -#endif /* SHELL_LOCK_H */ /** @} */ diff --git a/sys/include/stdio_base.h b/sys/include/stdio_base.h index d0bf47b431f4..3a506c9006ca 100644 --- a/sys/include/stdio_base.h +++ b/sys/include/stdio_base.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup sys_stdio STDIO abstraction * @@ -18,8 +20,6 @@ * @author Benjamin Valentin */ -#ifndef STDIO_BASE_H -#define STDIO_BASE_H #include @@ -177,4 +177,3 @@ void stdio_close(void); } #endif /** @} */ -#endif /* STDIO_BASE_H */ diff --git a/sys/include/stdio_nimble.h b/sys/include/stdio_nimble.h index 0cbf7a499839..b9cd58eed3d5 100644 --- a/sys/include/stdio_nimble.h +++ b/sys/include/stdio_nimble.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_stdio_nimble STDIO over NimBLE * @ingroup sys_stdio @@ -161,8 +163,6 @@ * @author Hendrik van Essen */ -#ifndef STDIO_NIMBLE_H -#define STDIO_NIMBLE_H #include "stdio_base.h" @@ -200,4 +200,3 @@ extern "C" { } #endif /** @} */ -#endif /* STDIO_NIMBLE_H */ diff --git a/sys/include/stdio_rtt.h b/sys/include/stdio_rtt.h index ae86e4d52de8..175919af07fd 100644 --- a/sys/include/stdio_rtt.h +++ b/sys/include/stdio_rtt.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_stdio_rtt * @@ -17,8 +19,6 @@ * @author Hauke Petersen */ -#ifndef STDIO_RTT_H -#define STDIO_RTT_H #include "stdio_base.h" @@ -45,4 +45,3 @@ void rtt_stdio_enable_blocking_stdout(void); #endif /** @} */ -#endif /* STDIO_RTT_H */ diff --git a/sys/include/stdio_semihosting.h b/sys/include/stdio_semihosting.h index f7d8abd96ce5..8bfb86a74878 100644 --- a/sys/include/stdio_semihosting.h +++ b/sys/include/stdio_semihosting.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_stdio_semihosting STDIO over Semihosting * @ingroup sys_stdio @@ -56,8 +58,6 @@ * @author Koen Zandberg */ -#ifndef STDIO_SEMIHOSTING_H -#define STDIO_SEMIHOSTING_H #include "stdio_base.h" @@ -76,4 +76,3 @@ extern "C" { } #endif /** @} */ -#endif /* STDIO_SEMIHOSTING_H */ diff --git a/sys/include/stdio_uart.h b/sys/include/stdio_uart.h index 6fc55de01bd8..e45217189687 100644 --- a/sys/include/stdio_uart.h +++ b/sys/include/stdio_uart.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_stdio_uart STDIO over UART * @ingroup sys_stdio @@ -86,8 +88,6 @@ * @author Hauke Petersen */ -#ifndef STDIO_UART_H -#define STDIO_UART_H /* Boards may override the default STDIO UART device */ #include "board.h" @@ -115,4 +115,3 @@ extern "C" { } #endif /** @} */ -#endif /* STDIO_UART_H */ diff --git a/sys/include/string_utils.h b/sys/include/string_utils.h index c8a399ae55be..782062e8365b 100644 --- a/sys/include/string_utils.h +++ b/sys/include/string_utils.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_string_utils Utility functions that are missing in `string.h` * @ingroup sys @@ -33,8 +35,6 @@ #include "flash_utils.h" #include "modules.h" -#ifndef STRING_UTILS_H -#define STRING_UTILS_H #ifdef __cplusplus extern "C" { @@ -195,5 +195,4 @@ void reverse_buf(void *buf, size_t len); } #endif -#endif /* STRING_UTILS_H */ /** @} */ diff --git a/sys/include/suit.h b/sys/include/suit.h index 008b8c4db5ef..2db8c97452c4 100644 --- a/sys/include/suit.h +++ b/sys/include/suit.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_suit SUIT secure firmware OTA upgrade infrastructure * @ingroup sys @@ -27,8 +30,6 @@ * */ -#ifndef SUIT_H -#define SUIT_H #include #include @@ -329,5 +330,4 @@ int suit_component_name_to_string(const suit_manifest_t *manifest, } #endif -#endif /* SUIT_H */ /** @} */ diff --git a/sys/include/suit/conditions.h b/sys/include/suit/conditions.h index 573ca7acf6a5..4a0b76a5a06a 100644 --- a/sys/include/suit/conditions.h +++ b/sys/include/suit/conditions.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup sys_suit * @brief SUIT conditions @@ -18,8 +21,6 @@ * */ -#ifndef SUIT_CONDITIONS_H -#define SUIT_CONDITIONS_H #include #include @@ -105,5 +106,4 @@ uuid_t *suit_get_device_id(void); } #endif -#endif /* SUIT_CONDITIONS_H */ /** @} */ diff --git a/sys/include/suit/handlers.h b/sys/include/suit/handlers.h index 8ffdcd021aba..1874157d0cc6 100644 --- a/sys/include/suit/handlers.h +++ b/sys/include/suit/handlers.h @@ -8,6 +8,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup sys_suit * @brief SUIT draft-ietf-suit-manifest-03 manifest handlers @@ -21,8 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef SUIT_HANDLERS_H -#define SUIT_HANDLERS_H #include #include @@ -227,5 +228,4 @@ void suit_param_cbor_to_ref(const suit_manifest_t *manifest, } #endif -#endif /* SUIT_HANDLERS_H */ /** @} */ diff --git a/sys/include/suit/policy.h b/sys/include/suit/policy.h index b1b3c96d0779..3b70f3a60591 100644 --- a/sys/include/suit/policy.h +++ b/sys/include/suit/policy.h @@ -8,6 +8,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup sys_suit * @brief SUIT policy definitions @@ -20,8 +23,6 @@ * */ -#ifndef SUIT_POLICY_H -#define SUIT_POLICY_H #include #include @@ -55,5 +56,4 @@ extern "C" { } #endif -#endif /* SUIT_POLICY_H */ /** @} */ diff --git a/sys/include/suit/storage.h b/sys/include/suit/storage.h index b7efbc813841..ff99f8745e86 100644 --- a/sys/include/suit/storage.h +++ b/sys/include/suit/storage.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_suit_storage SUIT secure firmware OTA upgrade storage * infrastructure @@ -95,8 +98,6 @@ * @warning This API is by design not thread safe */ -#ifndef SUIT_STORAGE_H -#define SUIT_STORAGE_H #include "suit.h" @@ -611,5 +612,4 @@ static inline int suit_storage_set_seq_no(suit_storage_t *storage, } #endif -#endif /* SUIT_STORAGE_H */ /** @} */ diff --git a/sys/include/suit/storage/flashwrite.h b/sys/include/suit/storage/flashwrite.h index 354d0db03f0f..40e9b17a3963 100644 --- a/sys/include/suit/storage/flashwrite.h +++ b/sys/include/suit/storage/flashwrite.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_suit_storage_flashwrite riotboot flashwrite storage backend * @ingroup sys_suit_storage @@ -17,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef SUIT_STORAGE_FLASHWRITE_H -#define SUIT_STORAGE_FLASHWRITE_H #include "suit.h" #include "riotboot/flashwrite.h" @@ -39,5 +40,4 @@ typedef struct { } #endif -#endif /* SUIT_STORAGE_FLASHWRITE_H */ /** @} */ diff --git a/sys/include/suit/storage/ram.h b/sys/include/suit/storage/ram.h index 4cdf0e09dcc7..cdf96f938fc3 100644 --- a/sys/include/suit/storage/ram.h +++ b/sys/include/suit/storage/ram.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_suit_storage_ram ram storage backend * @ingroup sys_suit_storage @@ -28,8 +31,6 @@ * distinction between valid content and not yet invalidated content. */ -#ifndef SUIT_STORAGE_RAM_H -#define SUIT_STORAGE_RAM_H #include @@ -101,5 +102,4 @@ typedef struct CONFIG_SUIT_STORAGE_RAM_ATTR { } #endif -#endif /* SUIT_STORAGE_RAM_H */ /** @} */ diff --git a/sys/include/suit/storage/vfs.h b/sys/include/suit/storage/vfs.h index 0f47053498c9..7e53c122b52c 100644 --- a/sys/include/suit/storage/vfs.h +++ b/sys/include/suit/storage/vfs.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 sys_suit_storage_vfs riotboot vfs storage backend * @ingroup sys_suit_storage @@ -30,8 +33,6 @@ * @author Koen Zandberg */ -#ifndef SUIT_STORAGE_VFS_H -#define SUIT_STORAGE_VFS_H #include "suit.h" #include "../../sys/include/vfs.h" @@ -68,5 +69,4 @@ typedef struct { } #endif -#endif /* SUIT_STORAGE_VFS_H */ /** @} */ diff --git a/sys/include/suit/transport/coap.h b/sys/include/suit/transport/coap.h index 3c841918cf66..06b7098a9908 100644 --- a/sys/include/suit/transport/coap.h +++ b/sys/include/suit/transport/coap.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_suit * @defgroup sys_suit_transport_coap SUIT firmware CoAP transport @@ -22,8 +24,6 @@ * */ -#ifndef SUIT_TRANSPORT_COAP_H -#define SUIT_TRANSPORT_COAP_H #include "net/nanocoap.h" #include "suit/transport/worker.h" @@ -74,5 +74,4 @@ static inline void suit_coap_trigger(const uint8_t *url, size_t len) } #endif -#endif /* SUIT_TRANSPORT_COAP_H */ /** @} */ diff --git a/sys/include/suit/transport/mock.h b/sys/include/suit/transport/mock.h index 689a6583895d..e263868daeca 100644 --- a/sys/include/suit/transport/mock.h +++ b/sys/include/suit/transport/mock.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @defgroup sys_suit_transport_mock SUIT secure firmware OTA mock transport * @ingroup sys_suit @@ -23,8 +26,6 @@ * `num_payloads` must be provided. */ -#ifndef SUIT_TRANSPORT_MOCK_H -#define SUIT_TRANSPORT_MOCK_H #include "suit.h" @@ -57,5 +58,4 @@ int suit_transport_mock_fetch(const suit_manifest_t *manifest); } #endif -#endif /* SUIT_TRANSPORT_MOCK_H */ /** @} */ diff --git a/sys/include/suit/transport/vfs.h b/sys/include/suit/transport/vfs.h index 5fd725af31e9..9b76ea541d93 100644 --- a/sys/include/suit/transport/vfs.h +++ b/sys/include/suit/transport/vfs.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 sys_suit_transport_vfs SUIT secure firmware OTA VFS transport * @ingroup sys_suit @@ -22,8 +25,6 @@ * */ -#ifndef SUIT_TRANSPORT_VFS_H -#define SUIT_TRANSPORT_VFS_H #include "net/nanocoap.h" #include "suit.h" @@ -48,5 +49,4 @@ int suit_transport_vfs_fetch(const suit_manifest_t *manifest, coap_blockwise_cb_ } #endif -#endif /* SUIT_TRANSPORT_VFS_H */ /** @} */ diff --git a/sys/include/suit/transport/worker.h b/sys/include/suit/transport/worker.h index c2c58f23cb3a..5e513a3e6a3c 100644 --- a/sys/include/suit/transport/worker.h +++ b/sys/include/suit/transport/worker.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_suit * @defgroup sys_suit_transport_worker SUIT firmware worker thread @@ -22,8 +24,6 @@ * */ -#ifndef SUIT_TRANSPORT_WORKER_H -#define SUIT_TRANSPORT_WORKER_H #include #if MODULE_NANOCOAP @@ -139,5 +139,4 @@ int suit_handle_manifest_buf(const uint8_t *buffer, size_t size); } #endif -#endif /* SUIT_TRANSPORT_WORKER_H */ /** @} */ diff --git a/sys/include/sys/bus.h b/sys/include/sys/bus.h index 204eb3b95de7..0d28e2e17565 100644 --- a/sys/include/sys/bus.h +++ b/sys/include/sys/bus.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys * @defgroup sys_bus System Buses for common events @@ -19,8 +21,6 @@ * @author Benjamin Valentin */ -#ifndef SYS_BUS_H -#define SYS_BUS_H #include #include "msg_bus.h" @@ -73,5 +73,4 @@ static inline msg_bus_t *sys_bus_get(sys_bus_t bus) } #endif -#endif /* SYS_BUS_H */ /** @} */ diff --git a/sys/include/test_utils/benchmark_udp.h b/sys/include/test_utils/benchmark_udp.h index 3b984913bf63..7b892dae4b45 100644 --- a/sys/include/test_utils/benchmark_udp.h +++ b/sys/include/test_utils/benchmark_udp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_benchmark_udp UDP benchmark * @ingroup sys @@ -17,8 +19,6 @@ * @author Benjamin Valentin */ -#ifndef TEST_UTILS_BENCHMARK_UDP_H -#define TEST_UTILS_BENCHMARK_UDP_H #include #include @@ -109,5 +109,4 @@ bool benchmark_udp_stop(void); } #endif -#endif /* TEST_UTILS_BENCHMARK_UDP_H */ /** @} */ diff --git a/sys/include/test_utils/expect.h b/sys/include/test_utils/expect.h index da3afdea9daa..f5a1ff7c72d7 100644 --- a/sys/include/test_utils/expect.h +++ b/sys/include/test_utils/expect.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_expect expect() utility function * @ingroup sys @@ -22,8 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef TEST_UTILS_EXPECT_H -#define TEST_UTILS_EXPECT_H #include #include "compiler_hints.h" @@ -83,5 +83,4 @@ NORETURN static inline void _expect_failure(const char *file, unsigned line) } #endif -#endif /* TEST_UTILS_EXPECT_H */ /** @} */ diff --git a/sys/include/test_utils/interactive_sync.h b/sys/include/test_utils/interactive_sync.h index 25193ad2b0f7..49708b0b893e 100644 --- a/sys/include/test_utils/interactive_sync.h +++ b/sys/include/test_utils/interactive_sync.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_interactive_sync Test interactive synchronization * @ingroup sys @@ -18,8 +20,6 @@ * @author Gaëtan Harter */ -#ifndef TEST_UTILS_INTERACTIVE_SYNC_H -#define TEST_UTILS_INTERACTIVE_SYNC_H #ifdef __cplusplus extern "C" { @@ -40,5 +40,4 @@ static inline void test_utils_interactive_sync(void) {} #ifdef __cplusplus } #endif -#endif /* TEST_UTILS_INTERACTIVE_SYNC_H */ /** @} */ diff --git a/sys/include/test_utils/netdev_eth_minimal.h b/sys/include/test_utils/netdev_eth_minimal.h index 8f3df2e769c4..f3b89348e252 100644 --- a/sys/include/test_utils/netdev_eth_minimal.h +++ b/sys/include/test_utils/netdev_eth_minimal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_netdev_eth_minimal Minimal netdev Ethernet device processing * @ingroup sys @@ -23,8 +25,6 @@ * @author Leandro Lanzieri */ -#ifndef TEST_UTILS_NETDEV_ETH_MINIMAL_H -#define TEST_UTILS_NETDEV_ETH_MINIMAL_H #include "net/netdev.h" @@ -63,5 +63,4 @@ int netdev_eth_minimal_init(void); } #endif -#endif /* TEST_UTILS_NETDEV_ETH_MINIMAL_H */ /** @} */ diff --git a/sys/include/test_utils/netdev_ieee802154_minimal.h b/sys/include/test_utils/netdev_ieee802154_minimal.h index fcc7fce63163..28b4e82da434 100644 --- a/sys/include/test_utils/netdev_ieee802154_minimal.h +++ b/sys/include/test_utils/netdev_ieee802154_minimal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_netdev_ieee802154_minimal Minimal netdev IEEE 802.15.4 device processing * @ingroup sys @@ -26,8 +28,6 @@ * @author Kevin Weiss */ -#ifndef TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H -#define TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H #include "net/netdev.h" @@ -112,5 +112,4 @@ int netdev_ieee802154_minimal_set(struct netdev *dev, netopt_t opt, void *data, } #endif -#endif /* TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H */ /** @} */ diff --git a/sys/include/test_utils/result_output.h b/sys/include/test_utils/result_output.h index b21b865fc602..3f68f3c48a4a 100644 --- a/sys/include/test_utils/result_output.h +++ b/sys/include/test_utils/result_output.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup test_utils_result_output Test result output * @ingroup sys @@ -47,8 +49,6 @@ * @author Kevin Weiss */ -#ifndef TEST_UTILS_RESULT_OUTPUT_H -#define TEST_UTILS_RESULT_OUTPUT_H #ifdef __cplusplus extern "C" { @@ -353,5 +353,4 @@ void turo_simple_exit_status(turo_t *ctx, int exit_status); #ifdef __cplusplus } #endif -#endif /* TEST_UTILS_RESULT_OUTPUT_H */ /** @} */ diff --git a/sys/include/time_units.h b/sys/include/time_units.h index 916c1a67aeb1..08477e29df15 100644 --- a/sys/include/time_units.h +++ b/sys/include/time_units.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_time_units Time unit representations * @brief Timestamp representation, computation, and conversion @@ -17,8 +19,6 @@ * @brief Utility header providing time unit defines */ -#ifndef TIME_UNITS_H -#define TIME_UNITS_H #ifdef __cplusplus extern "C" { @@ -114,4 +114,3 @@ extern "C" { #endif /** @} */ -#endif /* TIME_UNITS_H */ diff --git a/sys/include/timex.h b/sys/include/timex.h index 3396e21689f1..d71755b505e3 100644 --- a/sys/include/timex.h +++ b/sys/include/timex.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_timex Timex * @brief Timestamp representation, computation, and conversion @@ -17,8 +19,6 @@ * @brief Utility library for comparing and computing timestamps */ -#ifndef TIMEX_H -#define TIMEX_H #include #include @@ -160,4 +160,3 @@ const char *timex_to_str(timex_t t, char *timestamp); #endif /** @} */ -#endif /* TIMEX_H */ diff --git a/sys/include/tiny_strerror.h b/sys/include/tiny_strerror.h index 76225cb8a031..21c7efd97632 100644 --- a/sys/include/tiny_strerror.h +++ b/sys/include/tiny_strerror.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_tiny_strerror Tiny strerror() implementation * @ingroup sys @@ -41,8 +43,6 @@ * @author Marian Buschsieweke */ -#ifndef TINY_STRERROR_H -#define TINY_STRERROR_H #include #include @@ -79,5 +79,4 @@ const char *tiny_strerror(int errnum); } #endif -#endif /* TINY_STRERROR_H */ /** @} */ diff --git a/sys/include/tm.h b/sys/include/tm.h index f39f2b1b5a95..4163a36a19d5 100644 --- a/sys/include/tm.h +++ b/sys/include/tm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup sys_timex * @{ @@ -14,8 +16,6 @@ * @brief Utility library for `struct tm`. */ -#ifndef TM_H -#define TM_H #include #include @@ -121,5 +121,4 @@ int tm_is_valid_time(int hour, int min, int sec); } #endif -#endif /* TM_H */ /** @} */ diff --git a/sys/include/trace.h b/sys/include/trace.h index ea396341e188..e0e5bc74f189 100644 --- a/sys/include/trace.h +++ b/sys/include/trace.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys * @brief Trace program flows @@ -50,8 +52,6 @@ * */ -#ifndef TRACE_H -#define TRACE_H #include @@ -96,5 +96,4 @@ void trace_reset(void); } #endif -#endif /* TRACE_H */ /** @} */ diff --git a/sys/include/trickle.h b/sys/include/trickle.h index d001a9c9e7d5..c0d72db102cf 100644 --- a/sys/include/trickle.h +++ b/sys/include/trickle.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_trickle Trickle Timer * @ingroup sys @@ -25,8 +27,6 @@ * @author Cenk Gündoğan */ -#ifndef TRICKLE_H -#define TRICKLE_H #ifdef __cplusplus extern "C" { @@ -123,5 +123,4 @@ void trickle_callback(trickle_t *trickle); } #endif -#endif /* TRICKLE_H */ /** @} */ diff --git a/sys/include/tsrb.h b/sys/include/tsrb.h index 7a2eb4c3a4ce..c2bfdb2b87ef 100644 --- a/sys/include/tsrb.h +++ b/sys/include/tsrb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_tsrb Thread safe ringbuffer * @ingroup sys @@ -20,8 +22,6 @@ * @author Kaspar Schleiser */ -#ifndef TSRB_H -#define TSRB_H #include #include @@ -203,5 +203,4 @@ int tsrb_add(tsrb_t *rb, const uint8_t *src, size_t n); } #endif -#endif /* TSRB_H */ /** @} */ diff --git a/sys/include/unaligned.h b/sys/include/unaligned.h index 1ea3bce83fdf..9fddebc75975 100644 --- a/sys/include/unaligned.h +++ b/sys/include/unaligned.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_unaligned unaligned memory access methods * @ingroup sys @@ -34,8 +36,6 @@ * @author Kaspar Schleiser */ -#ifndef UNALIGNED_H -#define UNALIGNED_H #include @@ -102,4 +102,3 @@ static inline uint64_t unaligned_get_u64(const void *ptr) #endif /** @} */ -#endif /* UNALIGNED_H */ diff --git a/sys/include/universal_address.h b/sys/include/universal_address.h index 9e0b13198b63..838b18e954f6 100644 --- a/sys/include/universal_address.h +++ b/sys/include/universal_address.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_universal_address Universal Address Container * @ingroup sys @@ -18,8 +20,6 @@ * @author Martin Landsmann */ -#ifndef UNIVERSAL_ADDRESS_H -#define UNIVERSAL_ADDRESS_H #ifdef __cplusplus extern "C" { @@ -170,5 +170,4 @@ void universal_address_print_table(void); } #endif -#endif /* UNIVERSAL_ADDRESS_H */ /** @} */ diff --git a/sys/include/uri_parser.h b/sys/include/uri_parser.h index d4acda4dbc8c..742f873223af 100644 --- a/sys/include/uri_parser.h +++ b/sys/include/uri_parser.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 sys_uri_parser A minimal, non-destructive URI parser * @ingroup sys @@ -24,8 +27,6 @@ * */ -#ifndef URI_PARSER_H -#define URI_PARSER_H #include #include @@ -178,5 +179,4 @@ int uri_parser_split_query(const uri_parser_result_t *uri_parsed, } #endif -#endif /* URI_PARSER_H */ /** @} */ diff --git a/sys/include/usb.h b/sys/include/usb.h index 2706d2ec359e..5ab52fabd25c 100644 --- a/sys/include/usb.h +++ b/sys/include/usb.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ + +#pragma once + /** * @defgroup usb USB * @ingroup sys @@ -17,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef USB_H -#define USB_H #ifdef __cplusplus extern "C" { @@ -271,5 +272,4 @@ typedef enum { } #endif -#endif /* USB_H */ /** @} */ diff --git a/sys/include/usb/cdc.h b/sys/include/usb/cdc.h index d6994b129d4a..14ce80441cde 100644 --- a/sys/include/usb/cdc.h +++ b/sys/include/usb/cdc.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usb_cdc CDC - USB communications device class * @ingroup usb @@ -20,8 +22,6 @@ * @author Koen Zandberg */ -#ifndef USB_CDC_H -#define USB_CDC_H #include @@ -301,5 +301,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* USB_CDC_H */ /** @} */ diff --git a/sys/include/usb/descriptor.h b/sys/include/usb/descriptor.h index b0ed512c04f9..b5cab684ef76 100644 --- a/sys/include/usb/descriptor.h +++ b/sys/include/usb/descriptor.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ + +#pragma once + /** * @defgroup usb_descriptor USB descriptors * @ingroup usb @@ -16,8 +19,6 @@ * * @author Koen Zandberg */ -#ifndef USB_DESCRIPTOR_H -#define USB_DESCRIPTOR_H #include #include @@ -229,5 +230,4 @@ static inline bool usb_setup_is_read(usb_setup_t *pkt) } #endif -#endif /* USB_DESCRIPTOR_H */ /** @} */ diff --git a/sys/include/usb/dfu.h b/sys/include/usb/dfu.h index 0b4646413acb..6c2a85a1a56b 100644 --- a/sys/include/usb/dfu.h +++ b/sys/include/usb/dfu.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usb_dfu DFU - USB Device Firmware Upgrade * @ingroup usb @@ -19,8 +21,6 @@ * @author Dylan Laduranty */ -#ifndef USB_DFU_H -#define USB_DFU_H #include @@ -132,5 +132,4 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* USB_DFU_H */ /** @} */ diff --git a/sys/include/usb/hid.h b/sys/include/usb/hid.h index 516dd7ebf955..eee86ddab005 100644 --- a/sys/include/usb/hid.h +++ b/sys/include/usb/hid.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usb_hid HID - USB communications device class * @ingroup usb @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef USB_HID_H -#define USB_HID_H #include @@ -513,5 +513,4 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* USB_HID_H */ /** @} */ diff --git a/sys/include/usb/hid/hid_usage.h b/sys/include/usb/hid/hid_usage.h index b98e124ef811..a7de934fbe49 100644 --- a/sys/include/usb/hid/hid_usage.h +++ b/sys/include/usb/hid/hid_usage.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ + +#pragma once + /** * @defgroup usb_hid_usage USB HID usage tables * @ingroup usb_hid @@ -20,8 +23,6 @@ * @see Based on HID Usage Tables 1.21, https://www.usb.org/sites/default/files/hut1_21.pdf */ -#ifndef USB_HID_HID_USAGE_H -#define USB_HID_HID_USAGE_H #ifdef __cplusplus extern "C" { @@ -2729,5 +2730,4 @@ extern "C" { } #endif -#endif /* USB_HID_HID_USAGE_H */ /** @} */ diff --git a/sys/include/usb/msc.h b/sys/include/usb/msc.h index c265bf156a03..1ffaf2f6d3d1 100644 --- a/sys/include/usb/msc.h +++ b/sys/include/usb/msc.h @@ -8,6 +8,8 @@ * */ +#pragma once + /** * @defgroup usbus_msc USBUS Mass Storage Class functions * @ingroup usb @@ -20,8 +22,6 @@ * @author Dylan Laduranty */ -#ifndef USB_MSC_H -#define USB_MSC_H #include #include "usb/usbus.h" @@ -100,5 +100,4 @@ extern "C" { } #endif -#endif /* USB_MSC_H */ /** @} */ diff --git a/sys/include/usb/usbopt.h b/sys/include/usb/usbopt.h index ec976d233540..a5c0b37d678f 100644 --- a/sys/include/usb/usbopt.h +++ b/sys/include/usb/usbopt.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ + +#pragma once + /** * @defgroup usb_usbopt usbopt - Configuration options for USB APIs * @ingroup usb @@ -19,8 +22,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBOPT_H -#define USB_USBOPT_H #include @@ -120,5 +121,4 @@ typedef enum { } #endif -#endif /* USB_USBOPT_H */ /** @} */ diff --git a/sys/include/usb/usbus.h b/sys/include/usb/usbus.h index 1e41f26c5f18..8a549e7a631c 100644 --- a/sys/include/usb/usbus.h +++ b/sys/include/usb/usbus.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup usb_usbus USBUS device and endpoint manager * @ingroup usb @@ -20,8 +22,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_H -#define USB_USBUS_H #include #include @@ -789,5 +789,4 @@ static inline bool usbus_urb_isset_flag(usbus_urb_t *urb, #ifdef __cplusplus } #endif -#endif /* USB_USBUS_H */ /** @} */ diff --git a/sys/include/usb/usbus/cdc/acm.h b/sys/include/usb/usbus/cdc/acm.h index 103da7ffdb71..de3c1aea18a2 100644 --- a/sys/include/usb/usbus/cdc/acm.h +++ b/sys/include/usb/usbus/cdc/acm.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usbus_cdc_acm_stdio STDIO over CDC ACM (usbus) * @ingroup sys_stdio @@ -38,8 +40,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CDC_ACM_H -#define USB_USBUS_CDC_ACM_H #include #include "usb/cdc.h" @@ -226,5 +226,4 @@ void usbus_cdc_acm_set_coding_cb(usbus_cdcacm_device_t *cdcacm, } #endif -#endif /* USB_USBUS_CDC_ACM_H */ /** @} */ diff --git a/sys/include/usb/usbus/cdc/ecm.h b/sys/include/usb/usbus/cdc/ecm.h index adaec1b732cd..f4f274678a3a 100644 --- a/sys/include/usb/usbus/cdc/ecm.h +++ b/sys/include/usb/usbus/cdc/ecm.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usbus_cdc_ecm USBUS CDC ECM - USBUS CDC ethernet control model * @ingroup usb @@ -19,8 +21,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CDC_ECM_H -#define USB_USBUS_CDC_ECM_H #include #include @@ -163,5 +163,4 @@ void usbus_cdcecm_init(usbus_t *usbus, usbus_cdcecm_device_t *handler); } #endif -#endif /* USB_USBUS_CDC_ECM_H */ /** @} */ diff --git a/sys/include/usb/usbus/control.h b/sys/include/usb/usbus/control.h index 3afa2ff880a6..65b4af53ad8f 100644 --- a/sys/include/usb/usbus/control.h +++ b/sys/include/usb/usbus/control.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup usb_usbus * @brief USBUS control endpoint module @@ -18,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CONTROL_H -#define USB_USBUS_CONTROL_H /** * @brief Number of IN EPs required for the control interface @@ -162,5 +162,4 @@ uint8_t *usbus_control_get_out_data(usbus_t *usbus, size_t *len); #ifdef __cplusplus } #endif -#endif /* USB_USBUS_CONTROL_H */ /** @} */ diff --git a/sys/include/usb/usbus/dfu.h b/sys/include/usb/usbus/dfu.h index 6751b7ab92ea..ff248fe3b15b 100644 --- a/sys/include/usb/usbus/dfu.h +++ b/sys/include/usb/usbus/dfu.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usbus_dfu USBUS DFU - USB Device Firmware Upgrade * @ingroup usb @@ -16,8 +18,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_DFU_H -#define USB_USBUS_DFU_H #include "usb/dfu.h" #include "riotboot/flashwrite.h" @@ -59,5 +59,4 @@ void usbus_dfu_init(usbus_t *usbus, usbus_dfu_device_t *handler, unsigned mode); } #endif -#endif /* USB_USBUS_DFU_H */ /** @} */ diff --git a/sys/include/usb/usbus/fmt.h b/sys/include/usb/usbus/fmt.h index 75d6da411db5..d47f18633f7d 100644 --- a/sys/include/usb/usbus/fmt.h +++ b/sys/include/usb/usbus/fmt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup usb_usbus_fmt USBUS descriptor formatter functions * @ingroup usb_usbus @@ -18,8 +20,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_FMT_H -#define USB_USBUS_FMT_H #include #include @@ -50,5 +50,4 @@ size_t usbus_fmt_descriptor_dev(usbus_t *usbus); #ifdef __cplusplus } #endif -#endif /* USB_USBUS_FMT_H */ /** @} */ diff --git a/sys/include/usb/usbus/hid.h b/sys/include/usb/usbus/hid.h index 7d0f76195b3a..93f2e85134a3 100644 --- a/sys/include/usb/usbus/hid.h +++ b/sys/include/usb/usbus/hid.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usbus_hid USBUS HID * @ingroup usb @@ -24,8 +26,6 @@ * @author Nils Ollrogge */ -#ifndef USB_USBUS_HID_H -#define USB_USBUS_HID_H #include @@ -106,5 +106,4 @@ void usbus_hid_init(usbus_t *usbus, usbus_hid_device_t *hid, } #endif -#endif /* USB_USBUS_HID_H */ /** @} */ diff --git a/sys/include/usb/usbus/hid_io.h b/sys/include/usb/usbus/hid_io.h index a436343c6658..fa4b33ebb402 100644 --- a/sys/include/usb/usbus/hid_io.h +++ b/sys/include/usb/usbus/hid_io.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup usbus_hid_io USBUS HID IO * @ingroup usb_hid @@ -19,8 +21,6 @@ * @author Nils Ollrogge */ -#ifndef USB_USBUS_HID_IO_H -#define USB_USBUS_HID_IO_H #include #include @@ -96,5 +96,4 @@ void usb_hid_io_init(usbus_t *usbus, const uint8_t *report_desc, size_t report_d } #endif -#endif /* USB_USBUS_HID_IO_H */ /** @} */ diff --git a/sys/include/usb/usbus/msc.h b/sys/include/usb/usbus/msc.h index 967053083105..21e7ce9dced1 100644 --- a/sys/include/usb/usbus/msc.h +++ b/sys/include/usb/usbus/msc.h @@ -8,6 +8,8 @@ * */ +#pragma once + /** * @ingroup usbus_msc * @@ -19,8 +21,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_MSC_H -#define USB_USBUS_MSC_H #include #include "usb/usbus.h" @@ -131,5 +131,4 @@ int usbus_msc_remove_lun(usbus_t *usbus, mtd_dev_t *dev); } #endif -#endif /* USB_USBUS_MSC_H */ /** @} */ diff --git a/sys/include/usb/usbus/msc/scsi.h b/sys/include/usb/usbus/msc/scsi.h index 68e636f335b2..33d0f31145be 100644 --- a/sys/include/usb/usbus/msc/scsi.h +++ b/sys/include/usb/usbus/msc/scsi.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @ingroup usbus_msc * @@ -17,8 +19,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_MSC_SCSI_H -#define USB_USBUS_MSC_SCSI_H #include "byteorder.h" @@ -291,5 +291,4 @@ void scsi_gen_csw(usbus_handler_t *handler, cbw_info_t *cmd); } #endif -#endif /* USB_USBUS_MSC_SCSI_H */ /** @} */ diff --git a/sys/include/usb_board_reset.h b/sys/include/usb_board_reset.h index d189ae816cde..cf9c4898190e 100644 --- a/sys/include/usb_board_reset.h +++ b/sys/include/usb_board_reset.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_usb_board_reset Board reset via USB CDC ACM * @ingroup sys @@ -17,8 +19,6 @@ * @author Alexandre Abadie */ -#ifndef USB_BOARD_RESET_H -#define USB_BOARD_RESET_H #ifdef __cplusplus extern "C" { @@ -38,5 +38,4 @@ void usb_board_reset_in_bootloader(void); } #endif -#endif /* USB_BOARD_RESET_H */ /** @} */ diff --git a/sys/include/usb_board_reset_internal.h b/sys/include/usb_board_reset_internal.h index 70e1e832b3da..e90d482eeb04 100644 --- a/sys/include/usb_board_reset_internal.h +++ b/sys/include/usb_board_reset_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_usb_board_reset_internal Board reset via USB CDC ACM internals * @ingroup sys_usb_board_reset @@ -17,8 +19,6 @@ * @author Alexandre Abadie */ -#ifndef USB_BOARD_RESET_INTERNAL_H -#define USB_BOARD_RESET_INTERNAL_H #ifdef __cplusplus extern "C" { @@ -47,5 +47,4 @@ int usb_board_reset_coding_cb(usbus_cdcacm_device_t *cdcacm, } #endif -#endif /* USB_BOARD_RESET_INTERNAL_H */ /** @} */ diff --git a/sys/include/ut_process.h b/sys/include/ut_process.h index ece1578b97df..4d0e24b3f76f 100644 --- a/sys/include/ut_process.h +++ b/sys/include/ut_process.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_ut_process URI template processor * @ingroup sys @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef UT_PROCESS_H -#define UT_PROCESS_H #include #include @@ -97,5 +97,4 @@ static inline int ut_process_str_expand(const char *ut, } #endif -#endif /* UT_PROCESS_H */ /** @} */ diff --git a/sys/include/utlist.h b/sys/include/utlist.h index b334aa68a070..c76811a82c00 100644 --- a/sys/include/utlist.h +++ b/sys/include/utlist.h @@ -21,6 +21,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#pragma once + /** * @defgroup sys_ut utlist * @ingroup sys @@ -34,8 +36,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * http://troydhanson.github.io/uthash/utlist.html */ -#ifndef UTLIST_H -#define UTLIST_H /** @brief Version number */ #define UTLIST_VERSION 1.9.9 @@ -868,5 +868,4 @@ do { } #endif -#endif /* UTLIST_H */ /** @} */ diff --git a/sys/include/uuid.h b/sys/include/uuid.h index 92c35e0382a7..2ae25ae337c6 100644 --- a/sys/include/uuid.h +++ b/sys/include/uuid.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_uuid RFC 4122 compliant UUID's * @ingroup sys @@ -23,8 +25,6 @@ * @author Koen Zandberg */ -#ifndef UUID_H -#define UUID_H #include #include @@ -161,5 +161,4 @@ int uuid_from_string(uuid_t *uuid, const char *str); #ifdef __cplusplus } #endif -#endif /* UUID_H */ /** @} */ diff --git a/sys/include/vfs.h b/sys/include/vfs.h index bc88b05f98cc..6562a218225f 100644 --- a/sys/include/vfs.h +++ b/sys/include/vfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_vfs Virtual File System (VFS) layer * @ingroup sys @@ -50,8 +52,6 @@ * @author Joakim Nohlgård */ -#ifndef VFS_H -#define VFS_H #include #include /* for struct stat */ @@ -1210,6 +1210,5 @@ int vfs_sysop_stat_from_fstat(vfs_mount_t *mountp, } #endif -#endif /* VFS_H */ /** @} */ diff --git a/sys/include/vfs_default.h b/sys/include/vfs_default.h index f314b5b16072..fdff8ce5ac1d 100644 --- a/sys/include/vfs_default.h +++ b/sys/include/vfs_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_vfs * @brief VFS default mount points @@ -17,8 +19,6 @@ * @author Benjamin Valentin */ -#ifndef VFS_DEFAULT_H -#define VFS_DEFAULT_H #include "board.h" #include "modules.h" @@ -83,6 +83,5 @@ extern "C" { } #endif -#endif /* VFS_DEFAULT_H */ /** @} */ diff --git a/sys/include/vfs_util.h b/sys/include/vfs_util.h index d0eb06434e47..85df96ddff02 100644 --- a/sys/include/vfs_util.h +++ b/sys/include/vfs_util.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_vfs_util VFS helper functions * @ingroup sys_vfs @@ -17,8 +19,6 @@ * @author Benjamin Valentin */ -#ifndef VFS_UTIL_H -#define VFS_UTIL_H #include #include @@ -144,5 +144,4 @@ int vfs_unlink_recursive(const char *root, char *path_buf, size_t max_size); } #endif -#endif /* VFS_UTIL_H */ /** @} */ diff --git a/sys/include/volatile_utils.h b/sys/include/volatile_utils.h index c9dfa55c8ef2..6e27c370c703 100644 --- a/sys/include/volatile_utils.h +++ b/sys/include/volatile_utils.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_atomic_utils_volatile Helpers for volatile accesses * @ingroup sys_atomic_utils @@ -25,8 +27,6 @@ * @warning In most cases using this over @ref sys_atomic_utils is a bug! */ -#ifndef VOLATILE_UTILS_H -#define VOLATILE_UTILS_H #include @@ -351,5 +351,4 @@ static inline uint64_t volatile_fetch_and_u64(volatile uint64_t *dest, } #endif -#endif /* VOLATILE_UTILS_H */ /** @} */ diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 211dbd446409..1f157e0c0dbd 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_xtimer xtimer high level timer abstraction layer (deprecated) * @ingroup sys @@ -39,7 +41,11 @@ * @author Kaspar Schleiser * @author Joakim Nohlgård */ -#ifndef XTIMER_H + +/** + * @brief This macro is used to check whether internal headers have been + * included via the public header + */ #define XTIMER_H #include @@ -683,4 +689,3 @@ static inline int xtimer_msg_receive_timeout64(msg_t *msg, uint64_t timeout); #endif /* MODULE_ZTIMER_XTIMER_COMPAT */ /** @} */ -#endif /* XTIMER_H */ diff --git a/sys/include/xtimer/implementation.h b/sys/include/xtimer/implementation.h index 0e30b8a54dfe..b50f5a9e3a2c 100644 --- a/sys/include/xtimer/implementation.h +++ b/sys/include/xtimer/implementation.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_xtimer @@ -20,8 +22,6 @@ * @author Josua Arndt * */ -#ifndef XTIMER_IMPLEMENTATION_H -#define XTIMER_IMPLEMENTATION_H #ifndef XTIMER_H #error "Do not include this file directly! Use xtimer.h instead" @@ -335,5 +335,4 @@ static inline bool xtimer_is_set(const xtimer_t *timer) } #endif -#endif /* XTIMER_IMPLEMENTATION_H */ /** @} */ diff --git a/sys/include/xtimer/tick_conversion.h b/sys/include/xtimer/tick_conversion.h index 924f8d327d06..08604773e216 100644 --- a/sys/include/xtimer/tick_conversion.h +++ b/sys/include/xtimer/tick_conversion.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_xtimer * @@ -15,8 +17,6 @@ * @author Joakim Nohlgård */ -#ifndef XTIMER_TICK_CONVERSION_H -#define XTIMER_TICK_CONVERSION_H #ifndef XTIMER_H #error "Do not include this file directly! Use xtimer.h instead" @@ -135,5 +135,4 @@ static inline uint64_t _xtimer_usec_from_ticks64(uint64_t ticks) { } #endif -#endif /* XTIMER_TICK_CONVERSION_H */ /** @} */ diff --git a/sys/include/zptr.h b/sys/include/zptr.h index c6b7183c71f7..b32720440d05 100644 --- a/sys/include/zptr.h +++ b/sys/include/zptr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_util_zptr Pointer Compression * @ingroup sys @@ -54,8 +56,6 @@ * @author Kaspar Schleiser */ -#ifndef ZPTR_H -#define ZPTR_H #include #include @@ -135,5 +135,4 @@ static inline void *zptrd(zptr_t zptr) { return (void *)zptr; } } #endif -#endif /* ZPTR_H */ /** @} */ diff --git a/sys/include/ztimer.h b/sys/include/ztimer.h index a49aa9a5193a..fbf7386e55c8 100644 --- a/sys/include/ztimer.h +++ b/sys/include/ztimer.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 sys_ztimer ztimer high level timer abstraction layer * @ingroup sys @@ -259,8 +262,6 @@ * @author Joakim Nohlgård */ -#ifndef ZTIMER_H -#define ZTIMER_H #include @@ -895,5 +896,4 @@ extern ztimer_clock_t *const ZTIMER_MSEC_BASE; } #endif -#endif /* ZTIMER_H */ /** @} */ diff --git a/sys/include/ztimer/config.h b/sys/include/ztimer/config.h index 7df9913beacf..c80e4007667d 100644 --- a/sys/include/ztimer/config.h +++ b/sys/include/ztimer/config.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup sys_ztimer * @{ @@ -17,8 +19,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONFIG_H -#define ZTIMER_CONFIG_H #include "board.h" #include "periph_conf.h" @@ -203,5 +203,4 @@ extern "C" { } #endif -#endif /* ZTIMER_CONFIG_H */ /** @} */ diff --git a/sys/include/ztimer/convert.h b/sys/include/ztimer/convert.h index 4dacfa8ed8ae..9ae1f77cf8a2 100644 --- a/sys/include/ztimer/convert.h +++ b/sys/include/ztimer/convert.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_convert ztimer frequency conversion modules * @ingroup sys_ztimer @@ -27,8 +29,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_H -#define ZTIMER_CONVERT_H #include "ztimer.h" @@ -93,5 +93,4 @@ void ztimer_convert_stop(ztimer_clock_t *clock); } #endif -#endif /* ZTIMER_CONVERT_H */ /** @} */ diff --git a/sys/include/ztimer/convert_frac.h b/sys/include/ztimer/convert_frac.h index 753714858f99..10c1ee446b00 100644 --- a/sys/include/ztimer/convert_frac.h +++ b/sys/include/ztimer/convert_frac.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_convert_frac ztimer_convert_frac frequency conversion layer * @ingroup sys_ztimer_convert @@ -25,8 +27,6 @@ * @author Kaspar Schleiser * @author Joakim Nohlgård */ -#ifndef ZTIMER_CONVERT_FRAC_H -#define ZTIMER_CONVERT_FRAC_H #include #include "ztimer.h" @@ -88,5 +88,4 @@ void ztimer_convert_frac_change_rate(ztimer_convert_frac_t *self, } #endif -#endif /* ZTIMER_CONVERT_FRAC_H */ /** @} */ diff --git a/sys/include/ztimer/convert_muldiv64.h b/sys/include/ztimer/convert_muldiv64.h index 5926daf6aa55..47ff1e2af3e5 100644 --- a/sys/include/ztimer/convert_muldiv64.h +++ b/sys/include/ztimer/convert_muldiv64.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_convert_muldiv64 plain 64bit carithmetic * @ingroup sys_ztimer_convert @@ -46,8 +48,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_MULDIV64_H -#define ZTIMER_CONVERT_MULDIV64_H #include "ztimer.h" #include "ztimer/convert.h" @@ -81,5 +81,4 @@ void ztimer_convert_muldiv64_init( } #endif -#endif /* ZTIMER_CONVERT_MULDIV64_H */ /** @} */ diff --git a/sys/include/ztimer/convert_shift.h b/sys/include/ztimer/convert_shift.h index 038122a64802..a7290f7099dc 100644 --- a/sys/include/ztimer/convert_shift.h +++ b/sys/include/ztimer/convert_shift.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_convert_shift conversion using shifts * @ingroup sys_ztimer_convert @@ -21,8 +23,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_SHIFT_H -#define ZTIMER_CONVERT_SHIFT_H #include @@ -67,5 +67,4 @@ void ztimer_convert_shift_up_init(ztimer_convert_shift_t *clock, } #endif -#endif /* ZTIMER_CONVERT_SHIFT_H */ /** @} */ diff --git a/sys/include/ztimer/mock.h b/sys/include/ztimer/mock.h index a8bf91fcd5e3..6a7a296cd7ff 100644 --- a/sys/include/ztimer/mock.h +++ b/sys/include/ztimer/mock.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_mock ztimer mock clock backend * @ingroup sys_ztimer @@ -24,8 +26,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_MOCK_H -#define ZTIMER_MOCK_H #include #include "ztimer.h" @@ -96,5 +96,4 @@ void ztimer_mock_init(ztimer_mock_t *self, unsigned width); } #endif -#endif /* ZTIMER_MOCK_H */ /** @} */ diff --git a/sys/include/ztimer/overhead.h b/sys/include/ztimer/overhead.h index faaef4ba9a8c..f66a155085cb 100644 --- a/sys/include/ztimer/overhead.h +++ b/sys/include/ztimer/overhead.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_overhead ztimer overhead utility * @ingroup sys_ztimer @@ -21,8 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_OVERHEAD_H -#define ZTIMER_OVERHEAD_H #include "ztimer.h" @@ -54,5 +54,4 @@ int32_t ztimer_overhead_set(ztimer_clock_t *clock, uint32_t base); */ int32_t ztimer_overhead_sleep(ztimer_clock_t *clock, uint32_t base); -#endif /* ZTIMER_OVERHEAD_H */ /** @} */ diff --git a/sys/include/ztimer/periodic.h b/sys/include/ztimer/periodic.h index b8258d26137e..ea67055754da 100644 --- a/sys/include/ztimer/periodic.h +++ b/sys/include/ztimer/periodic.h @@ -7,6 +7,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ + +#pragma once + /** * @ingroup sys_ztimer * @brief Periodic ztimer API @@ -66,8 +69,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIODIC_H -#define ZTIMER_PERIODIC_H #include #include @@ -156,5 +157,4 @@ void ztimer_periodic_stop(ztimer_periodic_t *timer); } #endif -#endif /* ZTIMER_PERIODIC_H */ /** @} */ diff --git a/sys/include/ztimer/periph_ptp.h b/sys/include/ztimer/periph_ptp.h index b968f1f8a451..14ade127d018 100644 --- a/sys/include/ztimer/periph_ptp.h +++ b/sys/include/ztimer/periph_ptp.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_periph_ptp ztimer periph/ptp backend * @ingroup sys_ztimer @@ -22,8 +24,6 @@ * @author Jana Eisoldt */ -#ifndef ZTIMER_PERIPH_PTP_H -#define ZTIMER_PERIPH_PTP_H #include "ztimer.h" @@ -50,5 +50,4 @@ void ztimer_periph_ptp_init(ztimer_periph_ptp_t *clock); } #endif -#endif /* ZTIMER_PERIPH_PTP_H */ /** @} */ diff --git a/sys/include/ztimer/periph_rtc.h b/sys/include/ztimer/periph_rtc.h index 40b7bc3fb49e..e17b0ac1653a 100644 --- a/sys/include/ztimer/periph_rtc.h +++ b/sys/include/ztimer/periph_rtc.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_periph_rtc ztimer periph/rtc backend * @ingroup sys_ztimer @@ -21,8 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_RTC_H -#define ZTIMER_PERIPH_RTC_H #include "ztimer.h" @@ -48,5 +48,4 @@ void ztimer_periph_rtc_init(ztimer_periph_rtc_t *clock); } #endif -#endif /* ZTIMER_PERIPH_RTC_H */ /** @} */ diff --git a/sys/include/ztimer/periph_rtt.h b/sys/include/ztimer/periph_rtt.h index 2868285f8dce..9e00f0460b4b 100644 --- a/sys/include/ztimer/periph_rtt.h +++ b/sys/include/ztimer/periph_rtt.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_periph_rtt ztimer periph/rtt backend * @ingroup sys_ztimer @@ -21,8 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_RTT_H -#define ZTIMER_PERIPH_RTT_H #include "ztimer.h" @@ -49,5 +49,4 @@ void ztimer_periph_rtt_init(ztimer_periph_rtt_t *clock); } #endif -#endif /* ZTIMER_PERIPH_RTT_H */ /** @} */ diff --git a/sys/include/ztimer/periph_timer.h b/sys/include/ztimer/periph_timer.h index 5e1a7ed634f8..b9625e0ca566 100644 --- a/sys/include/ztimer/periph_timer.h +++ b/sys/include/ztimer/periph_timer.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup sys_ztimer_periph_timer ztimer periph/timer backend * @ingroup sys_ztimer @@ -24,8 +26,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_TIMER_H -#define ZTIMER_PERIPH_TIMER_H #include "ztimer.h" #include "periph/timer.h" @@ -62,5 +62,4 @@ uint32_t ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev, } #endif -#endif /* ZTIMER_PERIPH_TIMER_H */ /** @} */ diff --git a/sys/include/ztimer/stopwatch.h b/sys/include/ztimer/stopwatch.h index dfba6f95d7b1..752148cb66b3 100644 --- a/sys/include/ztimer/stopwatch.h +++ b/sys/include/ztimer/stopwatch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_ztimer_stopwatch ztimer stop watch * @ingroup sys_ztimer @@ -14,8 +16,6 @@ * @author Benjamin Valentin * @{ */ -#ifndef ZTIMER_STOPWATCH_H -#define ZTIMER_STOPWATCH_H #include "ztimer.h" @@ -98,5 +98,4 @@ static inline void ztimer_stopwatch_stop(ztimer_stopwatch_t *timer) } #endif -#endif /* ZTIMER_STOPWATCH_H */ /** @} */ diff --git a/sys/include/ztimer/xtimer_compat.h b/sys/include/ztimer/xtimer_compat.h index daf9cab34c3a..b4f0ef9f5449 100644 --- a/sys/include/ztimer/xtimer_compat.h +++ b/sys/include/ztimer/xtimer_compat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_ztimer_xtimer_compat ztimer_xtimer_compat: xtimer wrapper * @ingroup sys_ztimer @@ -17,8 +19,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER_XTIMER_COMPAT_H -#define ZTIMER_XTIMER_COMPAT_H #include #include @@ -297,4 +297,3 @@ static inline bool xtimer_less64(xtimer_ticks64_t a, xtimer_ticks64_t b) #endif /** @} */ -#endif /* ZTIMER_XTIMER_COMPAT_H */ diff --git a/sys/include/ztimer64.h b/sys/include/ztimer64.h index d7e8f92c8559..eeba2e12c4fa 100644 --- a/sys/include/ztimer64.h +++ b/sys/include/ztimer64.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_ztimer * @defgroup sys_ztimer64 ztimer 64bit version @@ -61,8 +63,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER64_H -#define ZTIMER64_H #include @@ -531,5 +531,4 @@ int64_t ztimer64_overhead(ztimer64_clock_t *clock, uint64_t base); } #endif -#endif /* ZTIMER64_H */ /** @} */ diff --git a/sys/include/ztimer64/xtimer_compat.h b/sys/include/ztimer64/xtimer_compat.h index 3f10bbd57fe6..74fa861bea7b 100644 --- a/sys/include/ztimer64/xtimer_compat.h +++ b/sys/include/ztimer64/xtimer_compat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_ztimer64_xtimer_compat ztimer64_xtimer_compat: 64 Bit xtimer wrapper * @ingroup sys_ztimer64 @@ -17,8 +19,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER64_XTIMER_COMPAT_H -#define ZTIMER64_XTIMER_COMPAT_H #include #include @@ -310,4 +310,3 @@ static inline int xtimer_msg_receive_timeout64(msg_t *msg, uint64_t timeout) #endif /** @} */ -#endif /* ZTIMER64_XTIMER_COMPAT_H */ diff --git a/sys/libc/include/sys/uio.h b/sys/libc/include/sys/uio.h index ecf2327f0a0b..816883517e50 100644 --- a/sys/libc/include/sys/uio.h +++ b/sys/libc/include/sys/uio.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup posix * @{ @@ -17,8 +19,6 @@ * * @author Kaspar Schleiser */ -#ifndef SYS_UIO_H -#define SYS_UIO_H #include #include @@ -39,4 +39,3 @@ struct iovec { } #endif /** @} */ -#endif /* SYS_UIO_H */ diff --git a/sys/log_color/include/log_module.h b/sys/log_color/include/log_module.h index 0b035d2c6772..a10c023e1470 100644 --- a/sys/log_color/include/log_module.h +++ b/sys/log_color/include/log_module.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_log_color log_color: Colored log module * @ingroup sys @@ -18,8 +20,6 @@ * @author Alexandre Abadie */ -#ifndef LOG_MODULE_H -#define LOG_MODULE_H #ifdef __cplusplus extern "C" { @@ -37,5 +37,4 @@ void log_write(unsigned level, const char *format, ...); #ifdef __cplusplus } #endif -#endif /* LOG_MODULE_H */ /**@}*/ diff --git a/sys/log_printfnoformat/include/log_module.h b/sys/log_printfnoformat/include/log_module.h index b404d4a98d59..0801bd465925 100644 --- a/sys/log_printfnoformat/include/log_module.h +++ b/sys/log_printfnoformat/include/log_module.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_log_printfnoformat log_printfnoformat: puts log module * @ingroup sys @@ -21,8 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef LOG_MODULE_H -#define LOG_MODULE_H #include @@ -48,4 +48,3 @@ static inline void log_write(unsigned level, const char *format, ...) { } #endif /**@}*/ -#endif /* LOG_MODULE_H */ diff --git a/sys/net/application_layer/dhcpv6/_dhcpv6.h b/sys/net/application_layer/dhcpv6/_dhcpv6.h index fc6de6aa5060..a577a58db40f 100644 --- a/sys/net/application_layer/dhcpv6/_dhcpv6.h +++ b/sys/net/application_layer/dhcpv6/_dhcpv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_dhcpv6 * @{ @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_DHCPV6_H -#define PRIV_DHCPV6_H #include @@ -353,5 +353,4 @@ void dhcpv6_client_dns_rns_conf(const dhcpv6_opt_dns_rns_t *opt, } #endif -#endif /* PRIV_DHCPV6_H */ /** @} */ diff --git a/sys/net/application_layer/emcute/emcute_internal.h b/sys/net/application_layer/emcute/emcute_internal.h index 47a8aca93437..b35ed476238b 100644 --- a/sys/net/application_layer/emcute/emcute_internal.h +++ b/sys/net/application_layer/emcute/emcute_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_emcute * @{ @@ -16,8 +18,6 @@ * @author Hauke Petersen */ -#ifndef EMCUTE_INTERNAL_H -#define EMCUTE_INTERNAL_H #ifdef __cplusplus extern "C" { @@ -70,5 +70,4 @@ enum { } #endif -#endif /* EMCUTE_INTERNAL_H */ /** @} */ diff --git a/sys/net/application_layer/gcoap/include/forward_proxy_internal.h b/sys/net/application_layer/gcoap/include/forward_proxy_internal.h index 8831c19d889b..891dceba4bc3 100644 --- a/sys/net/application_layer/gcoap/include/forward_proxy_internal.h +++ b/sys/net/application_layer/gcoap/include/forward_proxy_internal.h @@ -6,6 +6,8 @@ * more details. */ +#pragma once + /** * @defgroup net_gcoap_forward_proxy_thread GCoAP Forward Proxy Thread * @ingroup net_gcoap @@ -19,8 +21,6 @@ * @author Mariem Charrada */ -#ifndef FORWARD_PROXY_INTERNAL_H -#define FORWARD_PROXY_INTERNAL_H #include #include "net/coap.h" @@ -85,7 +85,6 @@ int gcoap_forward_proxy_req_send(client_ep_t *cep); } #endif -#endif /* FORWARD_PROXY_INTERNAL_H */ /** * @} */ diff --git a/sys/net/gnrc/link_layer/gomach/include/gomach_internal.h b/sys/net/gnrc/link_layer/gomach/include/gomach_internal.h index c819a820695f..5a746efb6585 100644 --- a/sys/net/gnrc/link_layer/gomach/include/gomach_internal.h +++ b/sys/net/gnrc/link_layer/gomach/include/gomach_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_gomach * @{ @@ -16,8 +18,6 @@ * @author Shuguo Zhuo */ -#ifndef GOMACH_INTERNAL_H -#define GOMACH_INTERNAL_H #include @@ -913,5 +913,4 @@ void gnrc_gomach_update_neighbor_pubchan(gnrc_netif_t *netif); } #endif -#endif /* GOMACH_INTERNAL_H */ /** @} */ diff --git a/sys/net/gnrc/link_layer/lorawan/include/gnrc_lorawan_internal.h b/sys/net/gnrc/link_layer/lorawan/include/gnrc_lorawan_internal.h index 6bdea560abb9..61b9916d34e4 100644 --- a/sys/net/gnrc/link_layer/lorawan/include/gnrc_lorawan_internal.h +++ b/sys/net/gnrc/link_layer/lorawan/include/gnrc_lorawan_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lorawan * @{ @@ -15,8 +17,6 @@ * * @author Jose Ignacio Alamos */ -#ifndef GNRC_LORAWAN_INTERNAL_H -#define GNRC_LORAWAN_INTERNAL_H #include #include @@ -815,5 +815,4 @@ static inline void gnrc_lorawan_mlme_join_set_appkey(mlme_lorawan_join_t *mlme_j } #endif -#endif /* GNRC_LORAWAN_INTERNAL_H */ /** @} */ diff --git a/sys/net/gnrc/link_layer/lwmac/include/lwmac_internal.h b/sys/net/gnrc/link_layer/lwmac/include/lwmac_internal.h index 842dfd7401a8..fe7ba8f3922f 100644 --- a/sys/net/gnrc/link_layer/lwmac/include/lwmac_internal.h +++ b/sys/net/gnrc/link_layer/lwmac/include/lwmac_internal.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -18,8 +20,6 @@ * @author Shuguo Zhuo */ -#ifndef LWMAC_INTERNAL_H -#define LWMAC_INTERNAL_H #include @@ -390,5 +390,4 @@ int _gnrc_lwmac_dispatch_defer(gnrc_pktsnip_t * buffer[], gnrc_pktsnip_t * pkt); } #endif -#endif /* LWMAC_INTERNAL_H */ /** @} */ diff --git a/sys/net/gnrc/link_layer/lwmac/include/rx_state_machine.h b/sys/net/gnrc/link_layer/lwmac/include/rx_state_machine.h index 85498d382cc4..e04c7fa17b83 100644 --- a/sys/net/gnrc/link_layer/lwmac/include/rx_state_machine.h +++ b/sys/net/gnrc/link_layer/lwmac/include/rx_state_machine.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,8 +21,6 @@ * @} */ -#ifndef RX_STATE_MACHINE_H -#define RX_STATE_MACHINE_H #include "net/gnrc/pkt.h" #include "net/gnrc/netif.h" @@ -56,5 +56,3 @@ void gnrc_lwmac_rx_update(gnrc_netif_t *netif); #ifdef __cplusplus } #endif - -#endif /* RX_STATE_MACHINE_H */ diff --git a/sys/net/gnrc/link_layer/lwmac/include/tx_state_machine.h b/sys/net/gnrc/link_layer/lwmac/include/tx_state_machine.h index 838295ce8063..4b2f0b45240e 100644 --- a/sys/net/gnrc/link_layer/lwmac/include/tx_state_machine.h +++ b/sys/net/gnrc/link_layer/lwmac/include/tx_state_machine.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,8 +21,6 @@ * @} */ -#ifndef TX_STATE_MACHINE_H -#define TX_STATE_MACHINE_H #include "net/gnrc/pkt.h" #include "net/gnrc/netif.h" @@ -61,5 +61,3 @@ void gnrc_lwmac_tx_update(gnrc_netif_t *netif); #ifdef __cplusplus } #endif - -#endif /* TX_STATE_MACHINE_H */ diff --git a/sys/net/gnrc/netif/init_devs/include/init_devs.h b/sys/net/gnrc/netif/init_devs/include/init_devs.h index 576e01824e37..c2ddcacc6444 100644 --- a/sys/net/gnrc/netif/init_devs/include/init_devs.h +++ b/sys/net/gnrc/netif/init_devs/include/init_devs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_auto_init_gnrc_netif * @{ @@ -16,8 +18,6 @@ * @author Fabian Hüßler */ -#ifndef INIT_DEVS_H -#define INIT_DEVS_H #include "thread.h" #include "msg.h" @@ -72,5 +72,4 @@ extern "C" { } #endif -#endif /* INIT_DEVS_H */ /** @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h index 677c70b1629f..92a5245234ba 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_ipv6_nib * @{ @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_6LN_H -#define PRIV_NIB_6LN_H #include #include @@ -154,5 +154,4 @@ uint32_t _handle_6co(const icmpv6_hdr_t *icmpv6, } #endif -#endif /* PRIV_NIB_6LN_H */ /** @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h index 3652016ee8eb..8936ed9dfcab 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_ipv6_nib * @{ @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_6LR_H -#define PRIV_NIB_6LR_H #include @@ -132,5 +132,4 @@ gnrc_pktsnip_t *_copy_and_handle_aro(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6 } #endif -#endif /* PRIV_NIB_6LR_H */ /** @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h index a3d37960e3d3..0ddb1fb67500 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_ipv6_nib * @internal @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_ARSM_H -#define PRIV_NIB_ARSM_H #include #include @@ -265,6 +265,5 @@ bool _is_reachable(_nib_onl_entry_t *entry); } #endif -#endif /* PRIV_NIB_ARSM_H */ /** @internal * @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h index c4dd05ba3a53..2dd90977dc27 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_gnrc_ipv6_nib * @internal @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_INTERNAL_H -#define PRIV_NIB_INTERNAL_H #include #include @@ -914,6 +914,5 @@ void _nbr_push_pkt(_nib_onl_entry_t *node, gnrc_pktqueue_t *pkt); } #endif -#endif /* PRIV_NIB_INTERNAL_H */ /** @internal * @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h index df08b67de480..eb54980a1300 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_ipv6_nib * @internal @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_ROUTER_H -#define PRIV_NIB_ROUTER_H #include @@ -147,6 +147,5 @@ void _snd_rtr_advs_drop_pfx(gnrc_netif_t *netif, const ipv6_addr_t *dst, } #endif -#endif /* PRIV_NIB_ROUTER_H */ /** @internal * @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.h index 1736f69cc7d2..7aa3219f5b82 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_ipv6_nib * @brief @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef PRIV_NIB_SLAAC_H -#define PRIV_NIB_SLAAC_H #include #include @@ -80,5 +80,4 @@ void _handle_valid_addr(const ipv6_addr_t *addr); } #endif -#endif /* PRIV_NIB_SLAAC_H */ /** @} */ diff --git a/sys/net/gnrc/pktbuf/include/pktbuf_internal.h b/sys/net/gnrc/pktbuf/include/pktbuf_internal.h index 029c39ee5677..ca4c01c2e361 100644 --- a/sys/net/gnrc/pktbuf/include/pktbuf_internal.h +++ b/sys/net/gnrc/pktbuf/include/pktbuf_internal.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_pktbuf * @brief Internal stuff for gnrc_pktbuf @@ -20,8 +22,6 @@ * @author Martine Lenders * @author Hauke Petersen */ -#ifndef PKTBUF_INTERNAL_H -#define PKTBUF_INTERNAL_H #include #include @@ -88,5 +88,4 @@ bool gnrc_pktbuf_is_sane(void); } #endif -#endif /* PKTBUF_INTERNAL_H */ /** @} */ diff --git a/sys/net/gnrc/pktbuf_static/include/pktbuf_static.h b/sys/net/gnrc/pktbuf_static/include/pktbuf_static.h index dce6f8736e14..5f2325a636f5 100644 --- a/sys/net/gnrc/pktbuf_static/include/pktbuf_static.h +++ b/sys/net/gnrc/pktbuf_static/include/pktbuf_static.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_pktbuf * @brief Internal definitions of the static implementation of @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef PKTBUF_STATIC_H -#define PKTBUF_STATIC_H #include @@ -54,5 +54,4 @@ static inline size_t _align(size_t size) } #endif -#endif /* PKTBUF_STATIC_H */ /** @} */ diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/globals.h b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/globals.h index 3117f7b3c2e3..d92c8165b58b 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/globals.h +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/globals.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -16,8 +18,6 @@ * @author Cenk Gündoğan */ -#ifndef GLOBALS_H -#define GLOBALS_H #include "evtimer.h" @@ -80,5 +80,4 @@ extern evtimer_msg_t gnrc_rpl_evtimer; } #endif -#endif /* GLOBALS_H */ /** @} */ diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/netstats.h b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/netstats.h index c0d781f674bf..a29f3fb7aea1 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/netstats.h +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/netstats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -16,8 +18,6 @@ * @author Cenk Gündoğan */ -#ifndef NETSTATS_H -#define NETSTATS_H #ifdef __cplusplus extern "C" { @@ -217,5 +217,4 @@ static inline void gnrc_rpl_netstats_tx_DAO_ACK(netstats_rpl_t *netstats, size_t } #endif -#endif /* NETSTATS_H */ /** @} */ diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/validation.h b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/validation.h index 3dff17eaee2e..5857b02dd19f 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/validation.h +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_internal/validation.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -16,8 +18,6 @@ * @author Cenk Gündoğan */ -#ifndef VALIDATION_H -#define VALIDATION_H #ifdef __cplusplus extern "C" { @@ -44,5 +44,4 @@ bool gnrc_rpl_validation_options(int msg_type, gnrc_rpl_instance_t *inst, } #endif -#endif /* VALIDATION_H */ /** @} */ diff --git a/sys/net/gnrc/routing/rpl/of0.h b/sys/net/gnrc/routing/rpl/of0.h index edb5481b993b..55bcece866ea 100644 --- a/sys/net/gnrc/routing/rpl/of0.h +++ b/sys/net/gnrc/routing/rpl/of0.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_rpl * @{ @@ -17,8 +19,6 @@ * @author Eric Engel */ -#ifndef OF0_H -#define OF0_H #include "net/gnrc/rpl/structs.h" @@ -37,7 +37,6 @@ gnrc_rpl_of_t *gnrc_rpl_get_of0(void); } #endif -#endif /* OF0_H */ /** * @} */ diff --git a/sys/net/gnrc/sock/include/gnrc_sock_internal.h b/sys/net/gnrc/sock/include/gnrc_sock_internal.h index e7a006c2e206..ddd59a9193a6 100644 --- a/sys/net/gnrc/sock/include/gnrc_sock_internal.h +++ b/sys/net/gnrc/sock/include/gnrc_sock_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_sock * @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef GNRC_SOCK_INTERNAL_H -#define GNRC_SOCK_INTERNAL_H #include #include @@ -172,5 +172,4 @@ ssize_t gnrc_sock_send(gnrc_pktsnip_t *payload, sock_ip_ep_t *local, } #endif -#endif /* GNRC_SOCK_INTERNAL_H */ /** @} */ diff --git a/sys/net/gnrc/sock/include/sock_types.h b/sys/net/gnrc/sock/include/sock_types.h index 19468868cd37..a92199fef21b 100644 --- a/sys/net/gnrc/sock/include/sock_types.h +++ b/sys/net/gnrc/sock/include/sock_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup net_gnrc_sock GNRC-specific implementation of the sock API * @ingroup net_gnrc @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef SOCK_TYPES_H -#define SOCK_TYPES_H #include #include @@ -144,5 +144,4 @@ struct sock_udp { } #endif -#endif /* SOCK_TYPES_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_common.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_common.h index f59ee3483d49..2539939f98d3 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_common.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_COMMON_H -#define GNRC_TCP_COMMON_H #include #include "thread.h" @@ -165,5 +165,4 @@ _gnrc_tcp_common_tcb_list_t *_gnrc_tcp_common_get_tcb_list(void); } #endif -#endif /* GNRC_TCP_COMMON_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_eventloop.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_eventloop.h index 700a0cbfd7f9..46c671b0866e 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_eventloop.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_eventloop.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_EVENTLOOP_H -#define GNRC_TCP_EVENTLOOP_H #include @@ -62,5 +62,4 @@ void _gnrc_tcp_eventloop_unsched(evtimer_msg_event_t *event); } #endif -#endif /* GNRC_TCP_EVENTLOOP_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_fsm.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_fsm.h index 24182ba09c4c..6cd35733e40b 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_fsm.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_fsm.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_FSM_H -#define GNRC_TCP_FSM_H #include #include "mbox.h" @@ -101,5 +101,4 @@ _gnrc_tcp_fsm_state_t _gnrc_tcp_fsm_get_state(gnrc_tcp_tcb_t *tcb); } #endif -#endif /* GNRC_TCP_FSM_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_option.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_option.h index 19d2eba81568..1fb98a46e3cb 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_option.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_option.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_OPTION_H -#define GNRC_TCP_OPTION_H #include #include "assert.h" @@ -71,5 +71,4 @@ int _gnrc_tcp_option_parse(gnrc_tcp_tcb_t *tcb, tcp_hdr_t *hdr); } #endif -#endif /* GNRC_TCP_OPTION_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_pkt.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_pkt.h index f88480e9280f..c7f2f6261d01 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_pkt.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_pkt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_PKT_H -#define GNRC_TCP_PKT_H #include #include "net/gnrc.h" @@ -151,5 +151,4 @@ uint16_t _gnrc_tcp_pkt_calc_csum(const gnrc_pktsnip_t *hdr, } #endif -#endif /* GNRC_TCP_PKT_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_rcvbuf.h b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_rcvbuf.h index faae462f7b2d..9d8442720bdb 100644 --- a/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_rcvbuf.h +++ b/sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_rcvbuf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_gnrc_tcp * @@ -17,8 +19,6 @@ * @author Simon Brummer */ -#ifndef GNRC_TCP_RCVBUF_H -#define GNRC_TCP_RCVBUF_H #include "net/gnrc/tcp/tcb.h" @@ -52,5 +52,4 @@ void _gnrc_tcp_rcvbuf_release_buffer(gnrc_tcp_tcb_t *tcb); } #endif -#endif /* GNRC_TCP_RCVBUF_H */ /** @} */ diff --git a/sys/net/link_layer/eui_provider/include/eui48_provider_params.h b/sys/net/link_layer/eui_provider/include/eui48_provider_params.h index a7b64363c272..80f0c66196f5 100644 --- a/sys/net/link_layer/eui_provider/include/eui48_provider_params.h +++ b/sys/net/link_layer/eui_provider/include/eui48_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_eui_provider * @@ -14,8 +16,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI48_PROVIDER_PARAMS_H -#define EUI48_PROVIDER_PARAMS_H #if __has_include("eui_provider_params.h") #include "eui_provider_params.h" @@ -83,5 +83,3 @@ static const eui48_conf_t eui48_conf[] = { #ifdef __cplusplus } #endif - -#endif /* EUI48_PROVIDER_PARAMS_H */ diff --git a/sys/net/link_layer/eui_provider/include/eui64_provider_params.h b/sys/net/link_layer/eui_provider/include/eui64_provider_params.h index 7489b66bc490..413136c599e7 100644 --- a/sys/net/link_layer/eui_provider/include/eui64_provider_params.h +++ b/sys/net/link_layer/eui_provider/include/eui64_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup net_eui_provider * @@ -14,8 +16,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI64_PROVIDER_PARAMS_H -#define EUI64_PROVIDER_PARAMS_H #if __has_include("eui_provider_params.h") #include "eui_provider_params.h" @@ -84,5 +84,3 @@ static const eui64_conf_t eui64_conf[] = { #ifdef __cplusplus } #endif - -#endif /* EUI64_PROVIDER_PARAMS_H */ diff --git a/sys/net/sock/async/event/sock_async_ctx.h b/sys/net/sock/async/event/sock_async_ctx.h index 6da0ddbdd9cf..03cb081522b4 100644 --- a/sys/net/sock/async/event/sock_async_ctx.h +++ b/sys/net/sock/async/event/sock_async_ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup net_sock_async_event * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef SOCK_ASYNC_CTX_H -#define SOCK_ASYNC_CTX_H #include "event.h" @@ -70,5 +70,4 @@ typedef struct { } #endif -#endif /* SOCK_ASYNC_CTX_H */ /** @} */ diff --git a/sys/oneway-malloc/include/malloc.h b/sys/oneway-malloc/include/malloc.h index 9dc209ef7289..94d3ffdcd209 100644 --- a/sys/oneway-malloc/include/malloc.h +++ b/sys/oneway-malloc/include/malloc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup oneway_malloc Oneway malloc * @ingroup sys_memory_management @@ -29,8 +31,6 @@ * @author René Kijewski */ -#ifndef MALLOC_H -#define MALLOC_H #include @@ -79,7 +79,6 @@ void free(void *ptr); } #endif -#endif /* MALLOC_H */ /** * @} diff --git a/sys/posix/include/arpa/inet.h b/sys/posix/include/arpa/inet.h index 25779cbd6d5d..5bb317e8469f 100644 --- a/sys/posix/include/arpa/inet.h +++ b/sys/posix/include/arpa/inet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup posix_sockets * @{ @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef ARPA_INET_H -#define ARPA_INET_H #include "net/af.h" #include "sys/bytes.h" @@ -85,4 +85,3 @@ int inet_pton(int af, const char *src, void *dst); /** * @} */ -#endif /* ARPA_INET_H */ diff --git a/sys/posix/include/fcntl.h b/sys/posix/include/fcntl.h index 16d569424ca3..bfe6356fc910 100644 --- a/sys/posix/include/fcntl.h +++ b/sys/posix/include/fcntl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @file * @ingroup posix @@ -16,8 +18,6 @@ * @{ */ -#ifndef FCNTL_H -#define FCNTL_H #ifndef DOXYGEN #if defined(CPU_NATIVE) || MODULE_NEWLIB || MODULE_PICOLIBC @@ -73,5 +73,4 @@ int posix_fallocate(int, off_t, off_t); #endif /* DOXYGEN */ -#endif /* FCNTL_H */ /** @} */ diff --git a/sys/posix/include/netinet/in.h b/sys/posix/include/netinet/in.h index 7475b91a428b..55432f455477 100644 --- a/sys/posix/include/netinet/in.h +++ b/sys/posix/include/netinet/in.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup posix_sockets * @{ @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NETINET_IN_H -#define NETINET_IN_H #include #include @@ -271,4 +271,3 @@ extern const struct in6_addr in6addr_loopback; /** * @} */ -#endif /* NETINET_IN_H */ diff --git a/sys/posix/include/semaphore.h b/sys/posix/include/semaphore.h index 5340bb80f3a8..d30469e00ad2 100644 --- a/sys/posix/include/semaphore.h +++ b/sys/posix/include/semaphore.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup posix_semaphore POSIX semaphores * @ingroup posix @@ -22,8 +24,6 @@ * @author Víctor Ariño */ -#ifndef SEMAPHORE_H -#define SEMAPHORE_H #include #include @@ -294,5 +294,4 @@ static inline int sem_getvalue(sem_t *sem, int *sval) } #endif -#endif /* SEMAPHORE_H */ /** @} */ diff --git a/sys/posix/include/sys/bytes.h b/sys/posix/include/sys/bytes.h index 4239c478381f..f825d7650d55 100644 --- a/sys/posix/include/sys/bytes.h +++ b/sys/posix/include/sys/bytes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup posix_sockets */ @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef SYS_BYTES_H -#define SYS_BYTES_H #include @@ -41,5 +41,4 @@ typedef uint32_t socklen_t; /**< socket address length */ } #endif -#endif /* SYS_BYTES_H */ /** @} */ diff --git a/sys/posix/include/sys/select.h b/sys/posix/include/sys/select.h index afe63aac15df..a9661cef524e 100644 --- a/sys/posix/include/sys/select.h +++ b/sys/posix/include/sys/select.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup posix_select POSIX select * @ingroup posix @@ -26,8 +28,6 @@ * ](https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/sys_select.h) */ -#ifndef SYS_SELECT_H -#define SYS_SELECT_H #ifdef CPU_NATIVE /* On native, system headers may depend on system's . Hence, @@ -179,5 +179,4 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, } #endif -#endif /* SYS_SELECT_H */ /** @} */ diff --git a/sys/posix/include/sys/socket.h b/sys/posix/include/sys/socket.h index af60dc232fb6..9fe0634b55a2 100644 --- a/sys/posix/include/sys/socket.h +++ b/sys/posix/include/sys/socket.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup posix_sockets * @{ @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef SYS_SOCKET_H -#define SYS_SOCKET_H #ifdef CPU_NATIVE /* Ignore Linux definitions in native */ @@ -509,4 +509,3 @@ int setsockopt(int socket, int level, int option_name, const void *option_value, /** * @} */ -#endif /* SYS_SOCKET_H */ diff --git a/sys/posix/include/sys/statvfs.h b/sys/posix/include/sys/statvfs.h index 796811af48fd..e7d869cf91fa 100644 --- a/sys/posix/include/sys/statvfs.h +++ b/sys/posix/include/sys/statvfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @file * @brief POSIX compatible sys/statvfs.h definitions @@ -19,8 +21,6 @@ /* without the GCC pragma above #include_next will trigger a pedantic error */ #include_next #else -#ifndef SYS_STATVFS_H -#define SYS_STATVFS_H #include /* for fsblkcnt_t, fsfilcnt_t */ #if MODULE_NEWLIB @@ -70,7 +70,6 @@ enum { } #endif -#endif /* SYS_STATVFS_H */ #endif /* CPU_NATIVE */ diff --git a/sys/posix/pthread/include/pthread.h b/sys/posix/pthread/include/pthread.h index b83a5b144804..f4540c64be8a 100644 --- a/sys/posix/pthread/include/pthread.h +++ b/sys/posix/pthread/include/pthread.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup pthread POSIX threads * POSIX conforming multi-threading features. @@ -17,8 +19,6 @@ * @see [The Open Group Base Specifications Issue 7: pthread.h - threads](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html) */ -#ifndef PTHREAD_H -#define PTHREAD_H #include @@ -58,7 +58,6 @@ extern "C" { } #endif -#endif /* PTHREAD_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_barrier.h b/sys/posix/pthread/include/pthread_barrier.h index 626f3fb56161..e66120d429ca 100644 --- a/sys/posix/pthread/include/pthread_barrier.h +++ b/sys/posix/pthread/include/pthread_barrier.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_BARRIER_H -#define PTHREAD_BARRIER_H #include "mutex.h" @@ -136,7 +136,6 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared); } #endif -#endif /* PTHREAD_BARRIER_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_cancellation.h b/sys/posix/pthread/include/pthread_cancellation.h index 2f77e7a37653..2e551b8ecc00 100644 --- a/sys/posix/pthread/include/pthread_cancellation.h +++ b/sys/posix/pthread/include/pthread_cancellation.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -15,8 +17,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_CANCELLATION_H -#define PTHREAD_CANCELLATION_H #ifdef __cplusplus extern "C" { @@ -69,7 +69,6 @@ void pthread_testcancel(void); } #endif -#endif /* PTHREAD_CANCELLATION_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_cleanup.h b/sys/posix/pthread/include/pthread_cleanup.h index 963d08aa131c..36828fd4bae4 100644 --- a/sys/posix/pthread/include/pthread_cleanup.h +++ b/sys/posix/pthread/include/pthread_cleanup.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_CLEANUP_H -#define PTHREAD_CLEANUP_H #ifdef __cplusplus extern "C" { @@ -95,7 +95,6 @@ void __pthread_cleanup_pop(__pthread_cleanup_datum_t *datum, int execute); } #endif -#endif /* PTHREAD_CLEANUP_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_cond.h b/sys/posix/pthread/include/pthread_cond.h index 342776b7731c..1096082ab4f8 100644 --- a/sys/posix/pthread/include/pthread_cond.h +++ b/sys/posix/pthread/include/pthread_cond.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @author Martin Landsmann */ -#ifndef PTHREAD_COND_H -#define PTHREAD_COND_H #include #include "mutex.h" @@ -147,7 +147,6 @@ int pthread_cond_broadcast(pthread_cond_t *cond); } #endif -#endif /* PTHREAD_COND_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_mutex.h b/sys/posix/pthread/include/pthread_mutex.h index 6e2eb4066099..2126c57df9b0 100644 --- a/sys/posix/pthread/include/pthread_mutex.h +++ b/sys/posix/pthread/include/pthread_mutex.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_MUTEX_H -#define PTHREAD_MUTEX_H #include @@ -112,7 +112,6 @@ int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *o } #endif -#endif /* PTHREAD_MUTEX_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_mutex_attr.h b/sys/posix/pthread/include/pthread_mutex_attr.h index 5002c878c744..7db54614b1cd 100644 --- a/sys/posix/pthread/include/pthread_mutex_attr.h +++ b/sys/posix/pthread/include/pthread_mutex_attr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_MUTEX_ATTR_H -#define PTHREAD_MUTEX_ATTR_H #include @@ -215,7 +215,6 @@ int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr, int robustness); } #endif -#endif /* PTHREAD_MUTEX_ATTR_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_once.h b/sys/posix/pthread/include/pthread_once.h index 2a10358497d1..ef6565cb7d34 100644 --- a/sys/posix/pthread/include/pthread_once.h +++ b/sys/posix/pthread/include/pthread_once.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_ONCE_H -#define PTHREAD_ONCE_H #ifdef __cplusplus extern "C" { @@ -54,7 +54,6 @@ int pthread_once(pthread_once_t *once_control, void (*init_routine)(void)); } #endif -#endif /* PTHREAD_ONCE_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_rwlock.h b/sys/posix/pthread/include/pthread_rwlock.h index d021c0af3a17..302909db56ac 100644 --- a/sys/posix/pthread/include/pthread_rwlock.h +++ b/sys/posix/pthread/include/pthread_rwlock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_RWLOCK_H -#define PTHREAD_RWLOCK_H #include "priority_queue.h" #include "thread.h" @@ -176,7 +176,6 @@ bool __pthread_rwlock_blocked_writingly(const pthread_rwlock_t *rwlock); } #endif -#endif /* PTHREAD_RWLOCK_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_rwlock_attr.h b/sys/posix/pthread/include/pthread_rwlock_attr.h index 4d7eac47f6fe..1a0bfdc50613 100644 --- a/sys/posix/pthread/include/pthread_rwlock_attr.h +++ b/sys/posix/pthread/include/pthread_rwlock_attr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_RWLOCK_ATTR_H -#define PTHREAD_RWLOCK_ATTR_H #include @@ -80,7 +80,6 @@ int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared); } #endif -#endif /* PTHREAD_RWLOCK_ATTR_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_scheduling.h b/sys/posix/pthread/include/pthread_scheduling.h index 569c7fe9c4c7..319f8353bf78 100644 --- a/sys/posix/pthread/include/pthread_scheduling.h +++ b/sys/posix/pthread/include/pthread_scheduling.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -15,8 +17,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_SCHEDULING_H -#define PTHREAD_SCHEDULING_H #ifdef __cplusplus extern "C" { @@ -55,7 +55,6 @@ int pthread_setschedprio(pthread_t target_thread, int prio); } #endif -#endif /* PTHREAD_SCHEDULING_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_spin.h b/sys/posix/pthread/include/pthread_spin.h index 5b4026f2d487..16b23fee2048 100644 --- a/sys/posix/pthread/include/pthread_spin.h +++ b/sys/posix/pthread/include/pthread_spin.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -17,8 +19,6 @@ * Use irq_disable() and irq_restore() for shortterm locks instead. */ -#ifndef PTHREAD_SPIN_H -#define PTHREAD_SPIN_H #ifdef __cplusplus #include @@ -96,7 +96,6 @@ int pthread_spin_unlock(pthread_spinlock_t *lock); } #endif -#endif /* PTHREAD_SPIN_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_threading.h b/sys/posix/pthread/include/pthread_threading.h index 78561b817ab2..0328aefa25e0 100644 --- a/sys/posix/pthread/include/pthread_threading.h +++ b/sys/posix/pthread/include/pthread_threading.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_THREADING_H -#define PTHREAD_THREADING_H #include "kernel_defines.h" @@ -106,7 +106,6 @@ static inline int pthread_equal(pthread_t thread1, pthread_t thread2) } #endif -#endif /* PTHREAD_THREADING_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_threading_attr.h b/sys/posix/pthread/include/pthread_threading_attr.h index 825bab2e8e86..86c1a1326090 100644 --- a/sys/posix/pthread/include/pthread_threading_attr.h +++ b/sys/posix/pthread/include/pthread_threading_attr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -14,8 +16,6 @@ * @note Do not include this header file directly, but pthread.h. */ -#ifndef PTHREAD_THREADING_ATTR_H -#define PTHREAD_THREADING_ATTR_H #ifdef __cplusplus extern "C" { @@ -233,7 +233,6 @@ int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksiz } #endif -#endif /* PTHREAD_THREADING_ATTR_H */ /** * @} diff --git a/sys/posix/pthread/include/pthread_tls.h b/sys/posix/pthread/include/pthread_tls.h index 10354c15e9f0..cf2387ad9b97 100644 --- a/sys/posix/pthread/include/pthread_tls.h +++ b/sys/posix/pthread/include/pthread_tls.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pthread * @{ @@ -15,8 +17,6 @@ * @author René Kijewski */ -#ifndef PTHREAD_TLS_H -#define PTHREAD_TLS_H #ifdef __cplusplus extern "C" { @@ -87,7 +87,6 @@ struct __pthread_tls_datum **__pthread_get_tls_head(int self_id) PURE; } #endif -#endif /* PTHREAD_TLS_H */ /** * @} diff --git a/sys/psa_crypto/include/psa_ciphers.h b/sys/psa_crypto/include/psa_ciphers.h index 765f3cb4eb2b..2e3f277b8671 100644 --- a/sys/psa_crypto/include/psa_ciphers.h +++ b/sys/psa_crypto/include/psa_ciphers.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_cipher PSA Wrapper Functions: Cipher @@ -17,8 +19,6 @@ * @author Lena Boeckmann */ -#ifndef PSA_CIPHERS_H -#define PSA_CIPHERS_H #ifdef __cplusplus extern "C" { @@ -138,5 +138,4 @@ psa_status_t psa_cipher_chacha20_decrypt(uint8_t *key_buffer, } #endif -#endif /* PSA_CIPHERS_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_algorithm_dispatch.h b/sys/psa_crypto/include/psa_crypto_algorithm_dispatch.h index 4cd5cc9692c6..6ae3a8f31461 100644 --- a/sys/psa_crypto/include/psa_crypto_algorithm_dispatch.h +++ b/sys/psa_crypto/include/psa_crypto_algorithm_dispatch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_alg_disp PSA Crypto Algorithm Dispatcher @@ -17,8 +19,6 @@ * @author Lena Boeckmann */ -#ifndef PSA_CRYPTO_ALGORITHM_DISPATCH_H -#define PSA_CRYPTO_ALGORITHM_DISPATCH_H #ifdef __cplusplus extern "C" { @@ -174,5 +174,4 @@ psa_status_t psa_algorithm_dispatch_mac_compute(const psa_key_attributes_t *attr } #endif -#endif /* PSA_CRYPTO_ALGORITHM_DISPATCH_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_cbor_encoder.h b/sys/psa_crypto/include/psa_crypto_cbor_encoder.h index ffc14deb5e7f..7fd03a38e58f 100644 --- a/sys/psa_crypto/include/psa_crypto_cbor_encoder.h +++ b/sys/psa_crypto/include/psa_crypto_cbor_encoder.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_cbor_encoder Module for encoding PSA keys in CBOR @@ -18,8 +20,6 @@ * */ -#ifndef PSA_CRYPTO_CBOR_ENCODER_H -#define PSA_CRYPTO_CBOR_ENCODER_H #ifdef __cplusplus extern "C" { @@ -145,5 +145,4 @@ psa_status_t psa_decode_key_attributes(psa_key_attributes_t *attr, uint8_t *cbor } #endif -#endif /* PSA_CRYPTO_CBOR_ENCODER_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_location_dispatch.h b/sys/psa_crypto/include/psa_crypto_location_dispatch.h index f6d9231a459b..7d0e922288ed 100644 --- a/sys/psa_crypto/include/psa_crypto_location_dispatch.h +++ b/sys/psa_crypto/include/psa_crypto_location_dispatch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_loc_disp PSA Crypto Location Dispatcher @@ -17,8 +19,6 @@ * @author Lena Boeckmann */ -#ifndef PSA_CRYPTO_LOCATION_DISPATCH_H -#define PSA_CRYPTO_LOCATION_DISPATCH_H #ifdef __cplusplus extern "C" { @@ -177,5 +177,4 @@ psa_status_t psa_location_dispatch_generate_random(uint8_t *output, } #endif -#endif /* PSA_CRYPTO_LOCATION_DISPATCH_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_operation_encoder.h b/sys/psa_crypto/include/psa_crypto_operation_encoder.h index 7dcee3ad640f..e0a593ac739f 100644 --- a/sys/psa_crypto/include/psa_crypto_operation_encoder.h +++ b/sys/psa_crypto/include/psa_crypto_operation_encoder.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @{ @@ -21,8 +23,6 @@ * */ -#ifndef PSA_CRYPTO_OPERATION_ENCODER_H -#define PSA_CRYPTO_OPERATION_ENCODER_H #ifdef __cplusplus extern "C" { @@ -237,5 +237,4 @@ typedef enum { } #endif -#endif /* PSA_CRYPTO_OPERATION_ENCODER_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_persistent_storage.h b/sys/psa_crypto/include/psa_crypto_persistent_storage.h index ad75af4ccef3..8ae7b7f8236d 100644 --- a/sys/psa_crypto/include/psa_crypto_persistent_storage.h +++ b/sys/psa_crypto/include/psa_crypto_persistent_storage.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_pers_stor PSA Crypto Persistent Storage API @@ -18,8 +20,6 @@ * */ -#ifndef PSA_CRYPTO_PERSISTENT_STORAGE_H -#define PSA_CRYPTO_PERSISTENT_STORAGE_H #ifdef __cplusplus extern "C" { @@ -69,5 +69,4 @@ psa_status_t psa_destroy_persistent_key(psa_key_id_t key_id); } #endif -#endif /* PSA_CRYPTO_PERSISTENT_STORAGE_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_se_driver.h b/sys/psa_crypto/include/psa_crypto_se_driver.h index 80b739b05817..c0828e14aac2 100644 --- a/sys/psa_crypto/include/psa_crypto_se_driver.h +++ b/sys/psa_crypto/include/psa_crypto_se_driver.h @@ -15,6 +15,8 @@ * limitations under the License. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_se_driver PSA Crypto Secure Element Wrapper @@ -36,8 +38,6 @@ * authors implement, are not intended to be called by application developers. */ -#ifndef PSA_CRYPTO_SE_DRIVER_H -#define PSA_CRYPTO_SE_DRIVER_H #ifdef __cplusplus extern "C" { @@ -1310,5 +1310,4 @@ typedef struct { } #endif -#endif /* PSA_CRYPTO_SE_DRIVER_H */ /** @} */ diff --git a/sys/psa_crypto/include/psa_crypto_se_management.h b/sys/psa_crypto/include/psa_crypto_se_management.h index dc342a28a7f3..b5d5f3dd2067 100644 --- a/sys/psa_crypto/include/psa_crypto_se_management.h +++ b/sys/psa_crypto/include/psa_crypto_se_management.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup psa_crypto_se_mgmt PSA Crypto SE Management @@ -18,8 +20,6 @@ * */ -#ifndef PSA_CRYPTO_SE_MANAGEMENT_H -#define PSA_CRYPTO_SE_MANAGEMENT_H #ifdef __cplusplus extern "C" { @@ -203,5 +203,4 @@ psa_status_t psa_destroy_se_persistent_data(psa_key_location_t location); } #endif -#endif /* PSA_CRYPTO_SE_MANAGEMENT_H */ /**@}*/ diff --git a/sys/psa_crypto/include/psa_crypto_slot_management.h b/sys/psa_crypto/include/psa_crypto_slot_management.h index 4d92fb3a8888..9c60c7f30c68 100644 --- a/sys/psa_crypto/include/psa_crypto_slot_management.h +++ b/sys/psa_crypto/include/psa_crypto_slot_management.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_slot_mgmt PSA Crypto Key Slot Management @@ -18,8 +20,6 @@ * */ -#ifndef PSA_CRYPTO_SLOT_MANAGEMENT_H -#define PSA_CRYPTO_SLOT_MANAGEMENT_H #ifdef __cplusplus extern "C" { @@ -313,5 +313,4 @@ void psa_get_public_key_data_from_key_slot( const psa_key_slot_t *slot, } #endif -#endif /* PSA_CRYPTO_SLOT_MANAGEMENT_H */ /**@}*/ diff --git a/sys/psa_crypto/include/psa_ecc.h b/sys/psa_crypto/include/psa_ecc.h index 156c64f0d5dd..5f3e4ff3e680 100644 --- a/sys/psa_crypto/include/psa_ecc.h +++ b/sys/psa_crypto/include/psa_ecc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_ecc PSA Wrapper Functions: ECC @@ -17,8 +19,6 @@ * @author Lena Boeckmann */ -#ifndef PSA_ECC_H -#define PSA_ECC_H #ifdef __cplusplus extern "C" { @@ -182,5 +182,4 @@ psa_status_t psa_ecc_ed25519_verify_message(const uint8_t *key_buffer, size_t ke } #endif -#endif /* PSA_ECC_H */ /**@}*/ diff --git a/sys/psa_crypto/include/psa_hashes.h b/sys/psa_crypto/include/psa_hashes.h index 1a8dad42dbca..fbd167b46dac 100644 --- a/sys/psa_crypto/include/psa_hashes.h +++ b/sys/psa_crypto/include/psa_hashes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_hashes PSA Wrapper Functions: Hashes @@ -17,8 +19,6 @@ * @author Lena Boeckmann */ -#ifndef PSA_HASHES_H -#define PSA_HASHES_H #ifdef __cplusplus extern "C" { @@ -304,5 +304,4 @@ psa_status_t psa_hashes_sha3_512_finish(psa_hashes_sha3_ctx_t *ctx, } #endif -#endif /* PSA_HASHES_H */ /**@}*/ diff --git a/sys/psa_crypto/include/psa_mac.h b/sys/psa_crypto/include/psa_mac.h index c9d34e387905..3859eb9bfb9c 100644 --- a/sys/psa_crypto/include/psa_mac.h +++ b/sys/psa_crypto/include/psa_mac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup sys_psa_crypto * @defgroup sys_psa_crypto_mac PSA Wrapper Functions: MAC @@ -18,8 +20,6 @@ * */ -#ifndef PSA_MAC_H -#define PSA_MAC_H #ifdef __cplusplus extern "C" { @@ -46,5 +46,4 @@ psa_status_t psa_mac_compute_hmac_sha256( const psa_key_attributes_t *attribut } #endif -#endif /* PSA_MAC_H */ /**@}*/ diff --git a/sys/test_utils/netdev_eth_minimal/netdev_eth_minimal_internal.h b/sys/test_utils/netdev_eth_minimal/netdev_eth_minimal_internal.h index 22058a92114d..57e931b27c91 100644 --- a/sys/test_utils/netdev_eth_minimal/netdev_eth_minimal_internal.h +++ b/sys/test_utils/netdev_eth_minimal/netdev_eth_minimal_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup test_utils_netdev_eth_minimal * @@ -16,8 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef NETDEV_ETH_MINIMAL_INTERNAL_H -#define NETDEV_ETH_MINIMAL_INTERNAL_H #include "net/netdev.h" #include "event.h" @@ -46,5 +46,4 @@ extern device_reg_entry_t _devices[NETDEV_ETH_MINIMAL_NUMOF]; } #endif -#endif /* NETDEV_ETH_MINIMAL_INTERNAL_H */ /** @} */ diff --git a/sys/test_utils/netdev_ieee802154_minimal/netdev_ieee802154_minimal_internal.h b/sys/test_utils/netdev_ieee802154_minimal/netdev_ieee802154_minimal_internal.h index 7d53508e3953..3930aa851726 100644 --- a/sys/test_utils/netdev_ieee802154_minimal/netdev_ieee802154_minimal_internal.h +++ b/sys/test_utils/netdev_ieee802154_minimal/netdev_ieee802154_minimal_internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup test_utils_netdev_ieee802154_minimal * @@ -16,8 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef NETDEV_IEEE802154_MINIMAL_INTERNAL_H -#define NETDEV_IEEE802154_MINIMAL_INTERNAL_H #include "net/netdev.h" #include "event.h" @@ -42,6 +42,5 @@ extern device_reg_entry_t _devices[NETDEV_IEEE802154_MINIMAL_NUMOF]; } #endif -#endif /* NETDEV_IEEE802154_MINIMAL_INTERNAL_H */ /** @} */ diff --git a/sys/test_utils/result_output/check/result_output_types.h b/sys/test_utils/result_output/check/result_output_types.h index 601a1b52e257..800cfb199e51 100644 --- a/sys/test_utils/result_output/check/result_output_types.h +++ b/sys/test_utils/result_output/check/result_output_types.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef RESULT_OUTPUT_TYPES_H -#define RESULT_OUTPUT_TYPES_H +#pragma once #ifdef __cplusplus extern "C" { @@ -42,4 +41,3 @@ struct turo { #ifdef __cplusplus } #endif -#endif /* RESULT_OUTPUT_TYPES_H */ diff --git a/sys/test_utils/result_output/json/result_output_types.h b/sys/test_utils/result_output/json/result_output_types.h index 431afc0f29ca..675952bfa8de 100644 --- a/sys/test_utils/result_output/json/result_output_types.h +++ b/sys/test_utils/result_output/json/result_output_types.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef RESULT_OUTPUT_TYPES_H -#define RESULT_OUTPUT_TYPES_H +#pragma once #include "kernel_defines.h" @@ -45,4 +44,3 @@ struct turo { #ifdef __cplusplus } #endif -#endif /* RESULT_OUTPUT_TYPES_H */