Parcourir la source

fix for ubuntu missing type print macros

Thomas B il y a 1 semaine
Parent
révision
d4c4cd3cf9
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5
    0
      include/log.h
  2. 0
    1
      src/mem.c

+ 5
- 0
include/log.h Voir le fichier

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 Voir le fichier

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
 

Chargement…
Annuler
Enregistrer