diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-02 19:49:56 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-15 10:04:13 +0000 |
commit | f995c26de92eadbf3d961ad3e0fb233410798dd2 (patch) | |
tree | c21b09cf52d2f9d08d88c9b5fbd3b8f3551e35f6 /firmware/include/buflib_mempool.h | |
parent | 680261fbb7c3c0a4cde4321c35ce3fe0e6b0cce8 (diff) | |
download | rockbox-f995c26de92eadbf3d961ad3e0fb233410798dd2.tar.gz rockbox-f995c26de92eadbf3d961ad3e0fb233410798dd2.zip |
buflib: Add CONFIG_BUFLIB_BACKEND for selecting a buflib backend
Defaults to the normal "mempool" backend, which is currently the
only implementation.
Change-Id: I56d034a6e0f5edc90c39526d1551945eec6ca336
Diffstat (limited to 'firmware/include/buflib_mempool.h')
-rw-r--r-- | firmware/include/buflib_mempool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/include/buflib_mempool.h b/firmware/include/buflib_mempool.h index 61fe2168b0..f261d4abda 100644 --- a/firmware/include/buflib_mempool.h +++ b/firmware/include/buflib_mempool.h | |||
@@ -26,6 +26,10 @@ | |||
26 | #ifndef _BUFLIB_MEMPOOL_H_ | 26 | #ifndef _BUFLIB_MEMPOOL_H_ |
27 | #define _BUFLIB_MEMPOOL_H_ | 27 | #define _BUFLIB_MEMPOOL_H_ |
28 | 28 | ||
29 | #ifndef _BUFLIB_H_ | ||
30 | # error "include buflib.h instead" | ||
31 | #endif | ||
32 | |||
29 | #include <stdint.h> | 33 | #include <stdint.h> |
30 | #include <stdbool.h> | 34 | #include <stdbool.h> |
31 | #include <string.h> | 35 | #include <string.h> |