Explorar o código

64位模式下 默认支持 RT_PRINTF_LONGLONG

liuduanfei %!s(int64=4) %!d(string=hai) anos
pai
achega
f33c89ce5a
Modificáronse 1 ficheiros con 4 adicións e 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
  */