Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All compiling with -std=c++0x on Teensy 3.x
- Loading branch information
1 parent
af8ebb0
commit 96c8a91
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,14 +88,22 @@ int Print::printf(const char *format, ...) | |
{ | ||
va_list ap; | ||
va_start(ap, format); | ||
#ifdef __STRICT_ANSI__ | ||
return 0; // TODO: make this work with -std=c++0x | ||
#else | ||
return vdprintf((int)this, format, ap); | ||
#endif | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
PaulStoffregen
Author
Owner
|
||
} | ||
|
||
int Print::printf(const __FlashStringHelper *format, ...) | ||
{ | ||
va_list ap; | ||
va_start(ap, format); | ||
#ifdef __STRICT_ANSI__ | ||
return 0; | ||
#else | ||
return vdprintf((int)this, (const char *)format, ap); | ||
#endif | ||
} | ||
|
||
#ifdef __MKL26Z64__ | ||
|
For me just adding the declaration worked.
extern "C" int vdprintf(int fd, const char* format, va_list ap);