mirror of
https://github.com/FunKey-Project/picofe-irixxxx.git
synced 2025-12-12 09:48:52 +01:00
27 lines
459 B
C
27 lines
459 B
C
#ifndef LIBPICOFE_POSIX_H
|
|
#define LIBPICOFE_POSIX_H
|
|
|
|
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
|
|
#if defined(__linux__) || defined(__MINGW32__)
|
|
|
|
#include <dirent.h>
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifdef __MINGW32__
|
|
#warning hacks!
|
|
#define mkdir(pathname,mode) mkdir(pathname)
|
|
#define d_type d_ino
|
|
#define DT_REG 0
|
|
#define DT_DIR 0
|
|
#endif
|
|
|
|
#else
|
|
|
|
#error "must provide posix"
|
|
|
|
#endif
|
|
|
|
#endif // LIBPICOFE_POSIX_H
|