{"action":"closed","issue":{"url":"https://api.github.com/repos/cxong/tinydir/issues/28","repository_url":"https://api.github.com/repos/cxong/tinydir","labels_url":"https://api.github.com/repos/cxong/tinydir/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/cxong/tinydir/issues/28/comments","events_url":"https://api.github.com/repos/cxong/tinydir/issues/28/events","html_url":"https://github.com/cxong/tinydir/issues/28","id":144534809,"number":28,"title":"Doesn't work with MinGW-w64","user":{"login":"eXpl0it3r","id":920861,"avatar_url":"https://avatars.githubusercontent.com/u/920861?v=3","gravatar_id":"","url":"https://api.github.com/users/eXpl0it3r","html_url":"https://github.com/eXpl0it3r","followers_url":"https://api.github.com/users/eXpl0it3r/followers","following_url":"https://api.github.com/users/eXpl0it3r/following{/other_user}","gists_url":"https://api.github.com/users/eXpl0it3r/gists{/gist_id}","starred_url":"https://api.github.com/users/eXpl0it3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXpl0it3r/subscriptions","organizations_url":"https://api.github.com/users/eXpl0it3r/orgs","repos_url":"https://api.github.com/users/eXpl0it3r/repos","events_url":"https://api.github.com/users/eXpl0it3r/events{/privacy}","received_events_url":"https://api.github.com/users/eXpl0it3r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-30T10:13:43Z","updated_at":"2016-03-31T13:14:30Z","closed_at":"2016-03-31T13:14:30Z","body":"It [looks like](https://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg11426.html) `readdir_r` is not supported by MinGW-w64 distributions. When I try to build the samples on my MinGW Builds 5.3.0 compiler, I get the following errors.\r\n\r\n```\r\nIn file included from tinydir\\samples\\file_open_sample.c:2:0:\r\ntinydir/tinydir.h: In function 'tinydir_open':\r\ntinydir/tinydir.h:194:10: error: implicit declaration of function 'readdir_r' [-Werror=implicit-function-declaration]\r\n  error = readdir_r(dir->_d, dir->_ep, &dir->_e);\r\n          ^\r\ntinydir/tinydir.h: In function '_tinydir_dirent_buf_size':\r\ntinydir/tinydir.h:629:13: error: #error \"buffer size for readdir_r cannot be determined\"\r\n #           error \"buffer size for readdir_r cannot be determined\"\r\n             ^\r\n```\r\n\r\nIs there an alternative?"}}