Explorar el Código

64位模式下 默认支持 RT_PRINTF_LONGLONG

liuduanfei hace 4 años
padre
commit
f33c89ce5a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/kservice.c

+ 4 - 0
src/kservice.c

@@ -30,6 +30,10 @@
 /* use precision */
 #define RT_PRINTF_PRECISION
 
+#ifdef ARCH_CPU_64BIT
+    #define RT_PRINTF_LONGLONG
+#endif
+
 /**
  * @addtogroup KernelService
  */