From 2e8d6e869030843fec421831ed6388d84915c7c7 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 23 Jan 2021 22:12:17 -0600 Subject: [PATCH] add functions for embedded --- driver/others/memory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/driver/others/memory.c b/driver/others/memory.c index 2fb1f1f73..b430fd5c1 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1673,6 +1673,11 @@ void gotoblas_dummy_for_PGI(void) { #define ALLOC_MALLOC #else #define ALLOC_MALLOC + +inline int puts(const char *str) { return 0; } +inline int printf(const char *format, ...) { return 0; } +inline char *getenv(const char *name) { return ""; } +inline int atoi(const char *str) { return 0; } #endif #include