X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fposix.h;h=33ca96ccbb04c6164cff63e122dfb0215355c8f5;hb=e99d80480196f551f7e6c06deae3750de19b4c0e;hp=91001418acb1711a54e8bbfbffd6e7165fdfb75f;hpb=049a6b3e80151f6a5af726e25478ed15e111dfcc;p=libpicofe.git diff --git a/common/posix.h b/common/posix.h index 9100141..33ca96c 100644 --- a/common/posix.h +++ b/common/posix.h @@ -1,12 +1,22 @@ -/* define POSIX stuff: dirent, scandir, getcwd */ -#if defined(__linux__) +/* define POSIX stuff: dirent, scandir, getcwd, mkdir */ +#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 define dirent" +#error "must provide posix" #endif