Skip to content

Commit e7942f3

Browse files
committed
Fixes for clang
1 parent a2efbf6 commit e7942f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

projects/hello_world/serial/hello_serial.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#include "pico/stdlib.h"
1010

1111
/* For pritnf */
12+
#ifdef __clang__
1213
FILE *const stdout = NULL;
14+
#endif
1315

1416
int main() {
1517
stdio_init_all();

projects/hello_world/usb/hello_usb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
#include <stdio.h>
99
#include "pico/stdlib.h"
1010

11-
/* For pritnf */
11+
/* For pritnf and clang */
12+
#ifdef __clang__
1213
FILE *const stdout = NULL;
14+
#endif
1315

1416
int main() {
1517
stdio_init_all();

0 commit comments

Comments
 (0)