summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcr/coroutine.c2
-rw-r--r--libusb/usb_common.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index a4d41e8..dbeef12 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-#include <setjmp.h> /* for setjmp(), longjmp(), jmp_buf */
#include <stdint.h> /* for uint8_t */
#include <stdlib.h> /* for aligned_alloc(), free() */
#include <string.h> /* for strncpy(), memset() */
@@ -308,6 +307,7 @@
* 1. Allow us to inspect the buffer.
* 2. Do *not* save the interrupt mask.
*/
+ #include <setjmp.h> /* for setjmp(), longjmp(), jmp_buf */
typedef struct {
jmp_buf raw;
#if CONFIG_COROUTINE_MEASURE_STACK
diff --git a/libusb/usb_common.c b/libusb/usb_common.c
index 9a23998..29dec42 100644
--- a/libusb/usb_common.c
+++ b/libusb/usb_common.c
@@ -6,9 +6,10 @@
#include <stdint.h> /* for uint{n}_t types */
#include <stddef.h> /* for size_t */
-#include <string.h> /* memcpy(newlib) */
-#include <stdlib.h> /* for malloc(pico_malloc), realloc(pico_malloc), reallocarray(pico_malloc) */
-#include "tusb.h" /* for various tusb_*_t types */
+#include <string.h> /* memcpy() */
+#include <stdlib.h> /* for malloc(), realloc(), reallocarray() */
+
+#include <tusb.h> /* for various tusb_*_t types */
#include <libmisc/assert.h>