X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=common%2Fposix.h;h=33ca96ccbb04c6164cff63e122dfb0215355c8f5;hb=8ced8d2b38431e23be1b26457110febbe10d14c7;hp=2c2d98d9274e85e991374e3d55adb64d57531be9;hpb=6c026031a80434cda8499e2208538e0155466d6b;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"