Kaynağa Gözat

fix for ubuntu missing type print macros

Thomas B 6 gün önce
ebeveyn
işleme
d4c4cd3cf9
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    0
      include/log.h
  2. 0
    1
      src/mem.c

+ 5
- 0
include/log.h Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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
 

Loading…
İptal
Kaydet