nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
pack_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
11#ifndef __PACK_DEF__
12#define __PACK_DEF__
13
14#ifdef __ZEPHYR__
15#include <zephyr/toolchain.h>
16#elif __KERNEL__
17#include <linux/compiler_attributes.h>
18#else
19#ifndef __packed
20#define __packed __attribute__((__packed__))
21#endif
22#ifndef __aligned
23#define __aligned(x) __attribute__ \
24 ((__aligned__(x)))
25#endif
26#endif
27
28#define __NRF_WIFI_PKD __packed
29#define __NRF_WIFI_ALIGN_4 __aligned(4)
30
31#endif