Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
1818da2e
Commit
1818da2e
authored
Nov 22, 2015
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/utils/printf: Fix issue with putchar define for some ports.
parent
8ee43e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/utils/printf.c
lib/utils/printf.c
+1
-1
No files found.
lib/utils/printf.c
View file @
1818da2e
...
...
@@ -35,6 +35,7 @@
#include "py/formatfloat.h"
#endif
#undef putchar // Some stdlibs have a #define for putchar
int
printf
(
const
char
*
fmt
,
...);
int
vprintf
(
const
char
*
fmt
,
va_list
ap
);
int
putchar
(
int
c
);
...
...
@@ -72,7 +73,6 @@ int DEBUG_printf(const char *fmt, ...) {
#endif
// need this because gcc optimises printf("%c", c) -> putchar(c), and printf("a") -> putchar('a')
#undef putchar // Some stdlibs have a #define for putchar
int
putchar
(
int
c
)
{
char
chr
=
c
;
mp_hal_stdout_tx_strn_cooked
(
&
chr
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment