Skip to content

Commit

Permalink
[shell/linux] avoid to remap snprintf/vsnprintf for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Aug 2, 2023
1 parent d22adbb commit 0cf8257
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/shell/sys/linux/include/simple_libc/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ extern "C" {
#define tmpfile VSF_LINUX_LIBC_WRAPPER(tmpfile)
#define tmpnam VSF_LINUX_LIBC_WRAPPER(tmpnam)

#define vsnprintf VSF_LINUX_LIBC_WRAPPER(vsnprintf)
#define snprintf VSF_LINUX_LIBC_WRAPPER(snprintf)
#ifndef __CPU_WEBASSEMBLY__
# define vsnprintf VSF_LINUX_LIBC_WRAPPER(vsnprintf)
# define snprintf VSF_LINUX_LIBC_WRAPPER(snprintf)
#endif

#if defined(_GNU_SOURCE)
#define getline VSF_LINUX_LIBC_WRAPPER(getline)
Expand Down

0 comments on commit 0cf8257

Please sign in to comment.