浏览代码

fix for ubuntu missing type print macros

Thomas B 6 天前
父节点
当前提交
d4c4cd3cf9
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 5
    0
      include/log.h
  2. 0
    1
      src/mem.c

+ 5
- 0
include/log.h 查看文件

@@ -21,7 +21,12 @@
21 21
 
22 22
 #include <stdarg.h>
23 23
 #include <stdbool.h>
24
+
25
+// Include sys/types.h before inttypes.h to work around issue with
26
+// certain versions of GCC and newlib which causes omission of PRI_64
27
+#include <sys/types.h>
24 28
 #include <inttypes.h>
29
+
25 30
 #include "pico/stdlib.h"
26 31
 
27 32
 // for output that is stored in the debug log.

+ 0
- 1
src/mem.c 查看文件

@@ -17,7 +17,6 @@
17 17
  */
18 18
 
19 19
 #include <string.h>
20
-#include <inttypes.h>
21 20
 
22 21
 #include "pico/flash.h"
23 22
 

正在加载...
取消
保存