Skip to content

Commit

Permalink
cores: Fix a compile error caused by streams.h update
Browse files Browse the repository at this point in the history
Fix a compile error caused by the following change in nuttx.
c++ compatibility: rename reserved c++ keywords 'public' and 'this'

refs #16438
  • Loading branch information
KazuyaHioki authored and SPRESENSE committed Nov 7, 2023
1 parent 871d2bc commit 3988b00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int sync_printf(const char *fmt, ...)
lib_memoutstream(&memoutstream, buf, sizeof(buf));

va_start(ap, fmt);
n = lib_vsprintf((FAR struct lib_outstream_s *)&memoutstream.public, fmt, ap);
n = lib_vsprintf((FAR struct lib_outstream_s *)&memoutstream.common, fmt, ap);
va_end(ap);

uart_syncwrite(buf, n);
Expand Down

0 comments on commit 3988b00

Please sign in to comment.