summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-29 14:35:21 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-30 10:33:16 -0700
commitda3c1ce098fbfa699770447cf99cf19f6ac95fb1 (patch)
tree73041c1b25d3a2a4df46855a1a2c396c87ef17ed
parentcda33a489898c18024823b4d4b6e5e0c3b2de24a (diff)
Tidy #includes
-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>