File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -843,7 +843,7 @@ std::FILE *mbed_fdopen(FileHandle *fh, const char *mode)
843
843
}
844
844
845
845
int mbed_getc (std::FILE *_file){
846
- #if ( defined (__ICCARM__ ) && (__IAR_SYSTEMS_ICC__ < 8) )
846
+ #if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ < 8000000 )
847
847
/* This is only valid for unbuffered streams*/
848
848
int res = std::fgetc (_file);
849
849
if (res>=0 ){
@@ -858,7 +858,7 @@ int mbed_getc(std::FILE *_file){
858
858
}
859
859
860
860
char * mbed_gets (char *s, int size, std::FILE *_file){
861
- #if ( defined (__ICCARM__ ) && (__IAR_SYSTEMS_ICC__ < 8) )
861
+ #if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ < 8000000 )
862
862
/* This is only valid for unbuffered streams*/
863
863
char *str = fgets (s,size,_file);
864
864
if (str!=NULL ){
@@ -884,8 +884,8 @@ extern "C" WEAK void __iar_file_Mtxinit(__iar_Rmtx *mutex) {}
884
884
extern " C" WEAK void __iar_file_Mtxdst (__iar_Rmtx *mutex) {}
885
885
extern " C" WEAK void __iar_file_Mtxlock (__iar_Rmtx *mutex) {}
886
886
extern " C" WEAK void __iar_file_Mtxunlock (__iar_Rmtx *mutex) {}
887
- #if (__IAR_SYSTEMS_ICC__ >= 8 )
888
- extern " C" WEAK void *__aeabi_read_tp (void ) {}
887
+ #if defined (__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000 )
888
+ extern " C" WEAK void *__aeabi_read_tp (void ) { return NULL ; }
889
889
#endif
890
890
#elif defined(__CC_ARM)
891
891
// Do nothing
Original file line number Diff line number Diff line change 168
168
#include "cmsis_os2.h"
169
169
#include "mbed_toolchain.h"
170
170
#include "mbed_error.h"
171
- #if ( defined(__ICCARM__ ) && (__IAR_SYSTEMS_ICC__ >= 8 ) )
171
+ #if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000 )
172
172
#include <DLib_Threads.h>
173
173
#endif
174
174
/* Heap limits - only used if set */
@@ -576,7 +576,7 @@ void pre_main(void)
576
576
singleton_mutex_attr .cb_mem = & singleton_mutex_obj ;
577
577
singleton_mutex_id = osMutexNew (& singleton_mutex_attr );
578
578
579
- #if (__IAR_SYSTEMS_ICC__ >= 8 )
579
+ #if defined (__IAR_SYSTEMS_ICC__ ) && ( __VER__ >= 8000000 )
580
580
__iar_Initlocks ();
581
581
#endif
582
582
You can’t perform that action at this time.
0 commit comments