notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
menu: generalize credits code to show any message
[libpicofe.git]
/
common
/
posix.h
diff --git
a/common/posix.h
b/common/posix.h
index
2c2d98d
..
33ca96c
100644
(file)
--- a/
common/posix.h
+++ b/
common/posix.h
@@
-1,11
+1,19
@@
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
-#if defined(__linux__)
+#if defined(__linux__)
|| defined(__MINGW32__)
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#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"
#else
#error "must provide posix"