remove std:: namespace and update include accessability

pull/1433/head
sg- 2015-11-17 09:00:10 -06:00
parent f13226663c
commit d0b934eba0
2 changed files with 3 additions and 4 deletions

View File

@ -18,6 +18,7 @@
#include "platform.h"
#include "FileLike.h"
#include "stdarg.h"
namespace mbed {

View File

@ -15,8 +15,6 @@
*/
#include "Stream.h"
#include <cstdarg>
namespace mbed {
Stream::Stream(const char *name) : FileLike(name), _file(NULL) {
@ -91,7 +89,7 @@ off_t Stream::flen() {
}
int Stream::printf(const char* format, ...) {
std::va_list arg;
va_list arg;
va_start(arg, format);
fflush(_file);
int r = vfprintf(_file, format, arg);
@ -100,7 +98,7 @@ int Stream::printf(const char* format, ...) {
}
int Stream::scanf(const char* format, ...) {
std::va_list arg;
va_list arg;
va_start(arg, format);
fflush(_file);
int r = vfscanf(_file, format, arg);