mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #12135 from benpicco/libb2-fix
pkg/libb2: rename config.h to avoid conflicts in the global namespace, set HAVE_ALIGNED_ACCESS_REQUIRED based on CPU (fixes build on esp8266)
This commit is contained in:
commit
98dfdef276
@ -26,6 +26,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief The CPU supports unaligned memory access.
|
||||
* Even if the underlying architecture does not support it, the kernel will take care of it.
|
||||
*/
|
||||
#define CPU_HAS_UNALIGNED_ACCESS
|
||||
|
||||
/**
|
||||
* @brief Prints the address the callee will return to
|
||||
*/
|
||||
|
@ -1,5 +1,7 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#ifndef LIBB2_CONFIG_H
|
||||
#define LIBB2_CONFIG_H
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -13,7 +15,11 @@ extern "C" {
|
||||
#define NATIVE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifndef CPU_HAS_UNALIGNED_ACCESS
|
||||
#define HAVE_ALIGNED_ACCESS_REQUIRED
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* CONFIG_H */
|
||||
#endif /* LIBB2_CONFIG_H */
|
BIN
pkg/libb2/patches/0001-rename-config.h-to-libb2_config.h.patch
Normal file
BIN
pkg/libb2/patches/0001-rename-config.h-to-libb2_config.h.patch
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user