Skip to content

Commit c2a34d2

Browse files
committed
fix umm_malloc.c:1708: undefined reference to `putchar'
see esp8266#1629
1 parent 1fc8918 commit c2a34d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/esp8266/umm_malloc/umm_malloc.c

+6
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@
498498

499499
#include "umm_malloc_cfg.h" /* user-dependent */
500500

501+
#ifdef ESP8266
502+
#include "osapi.h"
503+
#define printf os_printf
504+
#endif
505+
506+
501507
#ifndef UMM_FIRST_FIT
502508
# ifndef UMM_BEST_FIT
503509
# define UMM_BEST_FIT

0 commit comments

Comments
 (0)