mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
pkg/libb2: define HAVE_ALIGNED_ACCESS_REQUIRED based on CPU
Most architectures do not support unaligned memory access, so set the define accordingly.
This commit is contained in:
parent
7047a200af
commit
bf410c84f1
@ -1,6 +1,8 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -13,6 +15,10 @@ extern "C" {
|
||||
#define NATIVE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifndef CPU_HAS_UNALIGNED_ACCESS
|
||||
#define HAVE_ALIGNED_ACCESS_REQUIRED
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user