mirror of https://github.com/ARMmbed/mbed-os.git
Internal members of std::FILE are not available from IAR8.x
parent
38e96ac432
commit
bcb8779362
|
@ -843,7 +843,7 @@ std::FILE *mbed_fdopen(FileHandle *fh, const char *mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbed_getc(std::FILE *_file){
|
int mbed_getc(std::FILE *_file){
|
||||||
#if defined (__ICCARM__)
|
#if (defined (__ICCARM__) && (__IAR_SYSTEMS_ICC__ < 8) )
|
||||||
/*This is only valid for unbuffered streams*/
|
/*This is only valid for unbuffered streams*/
|
||||||
int res = std::fgetc(_file);
|
int res = std::fgetc(_file);
|
||||||
if (res>=0){
|
if (res>=0){
|
||||||
|
@ -858,7 +858,7 @@ int mbed_getc(std::FILE *_file){
|
||||||
}
|
}
|
||||||
|
|
||||||
char* mbed_gets(char*s, int size, std::FILE *_file){
|
char* mbed_gets(char*s, int size, std::FILE *_file){
|
||||||
#if defined (__ICCARM__)
|
#if (defined (__ICCARM__) && (__IAR_SYSTEMS_ICC__ < 8))
|
||||||
/*This is only valid for unbuffered streams*/
|
/*This is only valid for unbuffered streams*/
|
||||||
char *str = fgets(s,size,_file);
|
char *str = fgets(s,size,_file);
|
||||||
if (str!=NULL){
|
if (str!=NULL){
|
||||||
|
|
Loading…
Reference in New Issue