Skip to content

Commit a036e60

Browse files
author
mars
committed
avoid circular macro expansion
1 parent a4fb3ee commit a036e60

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

WebSource/web.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,14 @@ int serviceCall(int service, void** params, int len){
227227
}
228228

229229
void *pvPortMalloc( size_t xWantedSize ){
230+
#ifdef malloc
231+
#undef malloc
232+
#endif
230233
return malloc(xWantedSize);
231234
}
232235
void vPortFree( void *pv ){
236+
#ifdef free
237+
#undef free
238+
#endif
233239
free(pv);
234240
}

0 commit comments

Comments
 (0)