mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
move common files to root
This commit is contained in:
parent
f506842df2
commit
a86e9a3e58
25 changed files with 15 additions and 15 deletions
23
posix.h
Normal file
23
posix.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue