add functions for embedded
authorxoviat <xoviat@users.noreply.github.com>
Sun, 24 Jan 2021 04:12:17 +0000 (22:12 -0600)
committerxoviat <xoviat@users.noreply.github.com>
Sun, 24 Jan 2021 04:12:17 +0000 (22:12 -0600)
driver/others/memory.c

index 2fb1f1f..b430fd5 100644 (file)
@@ -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 <stdlib.h>