Skip to content

Commit 2e8d6e8

Browse files
committed
add functions for embedded
1 parent b60de44 commit 2e8d6e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver/others/memory.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,11 @@ void gotoblas_dummy_for_PGI(void) {
16731673
#define ALLOC_MALLOC
16741674
#else
16751675
#define ALLOC_MALLOC
1676+
1677+
inline int puts(const char *str) { return 0; }
1678+
inline int printf(const char *format, ...) { return 0; }
1679+
inline char *getenv(const char *name) { return ""; }
1680+
inline int atoi(const char *str) { return 0; }
16761681
#endif
16771682

16781683
#include <stdlib.h>

0 commit comments

Comments
 (0)