/home/ch/Downloads/EdiZon/source/save.cpp: In function 's32 deleteDirRecursively(const char*, bool)':
/home/ch/Downloads/EdiZon/source/save.cpp:37:28: error: aggregate 'deleteDirRecursively(const char*, bool)::stat statbuf' has incomplete type and cannot be defined
struct stat statbuf;
^~~~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:41:39: error: invalid use of incomplete type 'struct deleteDirRecursively(const char*, bool)::stat'
if (!stat(buf, &statbuf)) {
^
/home/ch/Downloads/EdiZon/source/save.cpp:37:23: note: forward declaration of 'struct deleteDirRecursively(const char*, bool)::stat'
struct stat statbuf;
^~~~
/home/ch/Downloads/EdiZon/source/save.cpp:42:23: error: 'S_ISDIR' was not declared in this scope
if (S_ISDIR(statbuf.st_mode))
^~~~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:42:23: note: suggested alternative: 'EISDIR'
if (S_ISDIR(statbuf.st_mode))
^~~~~~~
EISDIR
/home/ch/Downloads/EdiZon/source/save.cpp: In function 'void makeExInjDir(char*, u64, u128, bool, const char*)':
/home/ch/Downloads/EdiZon/source/save.cpp:73:3: error: 'mkdir' was not declared in this scope
mkdir(ROOT_DIR, 0700);
^~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:73:3: note: suggested alternative: 'rmdir'
mkdir(ROOT_DIR, 0700);
^~~~~
rmdir
/home/ch/Downloads/EdiZon/source/save.cpp: In function 's32 isDirectory(const char*)':
/home/ch/Downloads/EdiZon/source/save.cpp:140:14: error: aggregate 'isDirectory(const char*)::stat statbuf' has incomplete type and cannot be defined
struct stat statbuf;
^~~~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:142:25: error: invalid use of incomplete type 'struct isDirectory(const char*)::stat'
if (stat(path, &statbuf) != 0)
^
/home/ch/Downloads/EdiZon/source/save.cpp:140:9: note: forward declaration of 'struct isDirectory(const char*)::stat'
struct stat statbuf;
^~~~
/home/ch/Downloads/EdiZon/source/save.cpp:145:9: error: 'S_ISDIR' was not declared in this scope
return S_ISDIR(statbuf.st_mode);
^~~~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:145:9: note: suggested alternative: 'EISDIR'
return S_ISDIR(statbuf.st_mode);
^~~~~~~
EISDIR
/home/ch/Downloads/EdiZon/source/save.cpp: In function 's32 copyAllSave(const char*, bool, const char*)':
/home/ch/Downloads/EdiZon/source/save.cpp:213:13: error: 'mkdir' was not declared in this scope
mkdir(filenameSave, 0700);
^~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:213:13: note: suggested alternative: 'dir'
mkdir(filenameSave, 0700);
^~~~~
dir
/home/ch/Downloads/EdiZon/source/save.cpp:217:13: error: 'mkdir' was not declared in this scope
mkdir(filenameSD, 0700);
^~~~~
/home/ch/Downloads/EdiZon/source/save.cpp:217:13: note: suggested alternative: 'dir'
mkdir(filenameSD, 0700);
^~~~~
dir
/opt/devkitpro/devkitA64/base_rules:13: recipe for target 'save.o' failed
make[1]: *** [save.o] Error 1