nrfxlib API 2.8.99
Loading...
Searching...
No Matches
nrf_modem_toolchain.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef NRF_MODEM_TOOLCHAIN_H__
15#define NRF_MODEM_TOOLCHAIN_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#ifdef __GNUC__
22#define __nrf_modem_attr_packed __attribute__((__packed__))
23#define __nrf_modem_printf_like(f, a) __attribute__((format (__printf__, f, a)))
24#define __nrf_modem_scanf_like(f, a) __attribute__((format (__scanf__, f, a)))
25#else
26#define __nrf_modem_attr_packed
27#define __nrf_modem_printf_like(f, a)
28#define __nrf_modem_scanf_like(f, a)
29#endif
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* NRF_MODEM_TOOLCHAIN_H__ */