X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fposix.h;h=33ca96ccbb04c6164cff63e122dfb0215355c8f5;hb=0c9ae59222a6fa9af18dcc072fdfb06cfca124d6;hp=2c2d98d9274e85e991374e3d55adb64d57531be9;hpb=f15ca4db35a3466cc59b796c2a5d8b963721a02c;p=libpicofe.git diff --git a/common/posix.h b/common/posix.h index 2c2d98d..33ca96c 100644 --- a/common/posix.h +++ b/common/posix.h @@ -1,11 +1,19 @@ /* define POSIX stuff: dirent, scandir, getcwd, mkdir */ -#if defined(__linux__) +#if defined(__linux__) || defined(__MINGW32__) #include #include #include #include +#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"