Use one libc wrapper copy for sgx and other platforms (#107)
And remove bh_printf macro for other platform header files
This commit is contained in:
@ -52,7 +52,7 @@ void bh_set_print_function(bh_print_function_t pf)
|
||||
print_function = pf;
|
||||
}
|
||||
|
||||
int bh_printf(const char *message, ...)
|
||||
int bh_printf_sgx(const char *message, ...)
|
||||
{
|
||||
if (print_function != NULL) {
|
||||
char msg[FIXED_BUFFER_SIZE] = { '\0' };
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int bh_printf(const char *message, ...);
|
||||
extern int bh_printf_sgx(const char *message, ...);
|
||||
|
||||
typedef uint64_t uint64;
|
||||
typedef int64_t int64;
|
||||
|
||||
Reference in New Issue
Block a user