mirror of https://github.com/ARMmbed/mbed-os.git
remove std:: namespace and update include accessability
parent
f13226663c
commit
d0b934eba0
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "FileLike.h"
|
#include "FileLike.h"
|
||||||
|
#include "stdarg.h"
|
||||||
|
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
*/
|
*/
|
||||||
#include "Stream.h"
|
#include "Stream.h"
|
||||||
|
|
||||||
#include <cstdarg>
|
|
||||||
|
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
|
||||||
Stream::Stream(const char *name) : FileLike(name), _file(NULL) {
|
Stream::Stream(const char *name) : FileLike(name), _file(NULL) {
|
||||||
|
@ -91,7 +89,7 @@ off_t Stream::flen() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int Stream::printf(const char* format, ...) {
|
int Stream::printf(const char* format, ...) {
|
||||||
std::va_list arg;
|
va_list arg;
|
||||||
va_start(arg, format);
|
va_start(arg, format);
|
||||||
fflush(_file);
|
fflush(_file);
|
||||||
int r = vfprintf(_file, format, arg);
|
int r = vfprintf(_file, format, arg);
|
||||||
|
@ -100,7 +98,7 @@ int Stream::printf(const char* format, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int Stream::scanf(const char* format, ...) {
|
int Stream::scanf(const char* format, ...) {
|
||||||
std::va_list arg;
|
va_list arg;
|
||||||
va_start(arg, format);
|
va_start(arg, format);
|
||||||
fflush(_file);
|
fflush(_file);
|
||||||
int r = vfscanf(_file, format, arg);
|
int r = vfscanf(_file, format, arg);
|
||||||
|
|
Loading…
Reference in New Issue