bluetooth: controller: Explicitly include toolchain.h.
This commit adds an explicit inclusion of toolchain.h from pdu.h. The endianness preprocessor definitions (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__) are used by pdu.h; these being not defined can easily go unnoticed and cause unexpected behaviours, as detailed in PR #18922. toolchain.h ensures that these preprocessor definitions are defined and *must* be included in a file that uses these definitions. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
07e9394dba
commit
9b0e738e37
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <toolchain.h>
|
||||||
|
|
||||||
#define BDADDR_SIZE 6
|
#define BDADDR_SIZE 6
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue