1 #ifndef LIBPICOFE_POSIX_H
2 #define LIBPICOFE_POSIX_H
4 /* define POSIX stuff: dirent, scandir, getcwd, mkdir */
5 #if defined(__MACH__) || defined(__linux__) || defined(__MINGW32__)
10 #include <sys/types.h>
14 #define mkdir(pathname,mode) mkdir(pathname)
20 #elif defined(__PSP__)
26 /* map PSP names to posix. needs special scandir() function to mask rwx bits */
27 #define d_type d_stat.st_attr
28 #define DT_LNK FIO_SO_IFLNK
29 #define DT_DIR FIO_SO_IFDIR
30 #define DT_REG FIO_SO_IFREG
35 #error "must provide posix"
39 #endif // LIBPICOFE_POSIX_H