> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 00:13:16 up 2 days, 14:27, 1 user, load average: 1.29, 1.24, 1.06
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define __NATIVE_USE_KLIB__
|
||||
//#define __NATIVE_USE_KLIB__
|
||||
|
||||
// string.h
|
||||
void *memset (void *s, int c, size_t n);
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <klib.h>
|
||||
|
||||
#if !defined(__ISA_NATIVE__) || defined(__NATIVE_USE_KLIB__)
|
||||
|
||||
int num_to_ascii(int num, int power, int size, char *buf) {
|
||||
if (size <= 1) {
|
||||
return 0;
|
||||
@ -80,3 +82,5 @@ int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
*out = '\0';
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user