Skip to content

Commit 189d377

Browse files
authored
Only include mutex header if necessary (earlephilhower#991)
1 parent 07e5caf commit 189d377

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rp2_common/pico_stdio/stdio.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
#include <stdarg.h>
1010

1111
#include "pico.h"
12-
#include "pico/mutex.h"
1312
#if LIB_PICO_PRINTF_PICO
1413
#include "pico/printf.h"
1514
#endif
1615
#include "pico/stdio.h"
1716
#include "pico/stdio/driver.h"
1817
#include "pico/time.h"
18+
#if PICO_STDOUT_MUTEX
19+
#include "pico/mutex.h"
20+
#endif
1921

2022
#if LIB_PICO_STDIO_UART
2123
#include "pico/stdio_uart.h"

0 commit comments

Comments
 (0)