Quellcode durchsuchen

fix for ubuntu missing type print macros

Thomas B vor 6 Tagen
Ursprung
Commit
d4c4cd3cf9
2 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5
    0
      include/log.h
  2. 0
    1
      src/mem.c

+ 5
- 0
include/log.h Datei anzeigen

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

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

Laden…
Abbrechen
Speichern