File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len) {
403403// here we define mp_raw_code_load_file depending on the port
404404// TODO abstract this away properly
405405
406- #if defined(__i386__ ) || defined(__x86_64__ )
406+ #if defined(__i386__ ) || defined(__x86_64__ ) || (defined( __arm__ ) && (defined( __unix__ )))
407407// unix file reader
408408
409409#include <sys/stat.h>
@@ -637,7 +637,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) {
637637// here we define mp_raw_code_save_file depending on the port
638638// TODO abstract this away properly
639639
640- #if defined(__i386__ ) || defined(__x86_64__ )
640+ #if defined(__i386__ ) || defined(__x86_64__ ) || (defined( __arm__ ) && (defined( __unix__ )))
641641
642642#include <unistd.h>
643643#include <sys/stat.h>
You can’t perform that action at this time.
0 commit comments