| 1 |
Origin: https://github.com/chunkeey/carl9170fw/pull/8 |
| 2 |
From: Bastian Germann <[email protected]> |
| 3 |
Date: Thu, 30 Jul 2026 22:43:45 +0200 |
| 4 |
Subject: [PATCH 7/7] Define memcpy, memset to remove string.h |
| 5 |
|
| 6 |
Signed-off-by: Bastian Germann <[email protected]> |
| 7 |
--- |
| 8 |
carlfw/include/printf.h | 4 +++- |
| 9 |
1 file changed, 3 insertions(+), 1 deletion(-) |
| 10 |
|
| 11 |
diff --git a/carlfw/include/printf.h b/carlfw/include/printf.h |
| 12 |
index 2678cfc..652146e 100644 |
| 13 |
--- a/carlfw/include/printf.h |
| 14 |
+++ b/carlfw/include/printf.h |
| 15 |
@@ -26,12 +26,14 @@ |
| 16 |
#define __CARL9170FW_PRINTF_H |
| 17 |
|
| 18 |
#include <stdarg.h> |
| 19 |
|
| 20 |
#include "config.h" |
| 21 |
#include "carl9170.h" |
| 22 |
#include "uart.h" |
| 23 |
#include "fwcmd.h" |
| 24 |
|
| 25 |
+void *memcpy(void *restrict, const void *restrict, size_t); |
| 26 |
+void *memset(void *, int, size_t); |
| 27 |
+ |
| 28 |
#ifdef CONFIG_CARL9170FW_PRINTF |
| 29 |
void __attribute__((format (printf, 1, 2))) tfp_printf(const char *fmt, ...); |
| 30 |
|