瀏覽代碼

fix for ubuntu missing type print macros

Thomas B 2 月之前
父節點
當前提交
d4c4cd3cf9
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    0
      include/log.h
  2. 0
    1
      src/mem.c

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

21
 
21
 
22
 #include <stdarg.h>
22
 #include <stdarg.h>
23
 #include <stdbool.h>
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
 #include <inttypes.h>
28
 #include <inttypes.h>
29
+
25
 #include "pico/stdlib.h"
30
 #include "pico/stdlib.h"
26
 
31
 
27
 // for output that is stored in the debug log.
32
 // for output that is stored in the debug log.

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

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

Loading…
取消
儲存