Explorar o código

[include] RT_USING_MUSLLIBC结构体报错的bug (#9834)

解决了gd32470z-lckfb libc_dirent结构体报错的bug
godmial hai 7 meses
pai
achega
24cf724899
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      components/libc/compilers/common/include/dirent.h

+ 2 - 0
components/libc/compilers/common/include/dirent.h

@@ -69,7 +69,9 @@ struct dirent
 typedef uint64_t ino_t;
 #endif
 struct libc_dirent {
+#ifdef RT_USING_MUSLLIBC
     ino_t d_ino;
+#endif
     off_t d_off;
     unsigned short d_reclen;
     unsigned char d_type;