{"action":"opened","issue":{"url":"https://api.github.com/repos/vstakhov/libucl/issues/61","labels_url":"https://api.github.com/repos/vstakhov/libucl/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/libucl/issues/61/comments","events_url":"https://api.github.com/repos/vstakhov/libucl/issues/61/events","html_url":"https://github.com/vstakhov/libucl/issues/61","id":55319555,"number":61,"title":"Minor issues with win32 builds","user":{"login":"nimaim","id":9406197,"avatar_url":"https://avatars.githubusercontent.com/u/9406197?v=3","gravatar_id":"","url":"https://api.github.com/users/nimaim","html_url":"https://github.com/nimaim","followers_url":"https://api.github.com/users/nimaim/followers","following_url":"https://api.github.com/users/nimaim/following{/other_user}","gists_url":"https://api.github.com/users/nimaim/gists{/gist_id}","starred_url":"https://api.github.com/users/nimaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimaim/subscriptions","organizations_url":"https://api.github.com/users/nimaim/orgs","repos_url":"https://api.github.com/users/nimaim/repos","events_url":"https://api.github.com/users/nimaim/events{/privacy}","received_events_url":"https://api.github.com/users/nimaim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T19:09:06Z","updated_at":"2015-01-23T19:09:06Z","closed_at":null,"body":"I am building libucl in Linux targeting a Win32 platform using MXE (https://github.com/mxe/mxe). This uses an internal i686-w64-mingw32 toolchain. The same issues also apply when building using Qt's built in mingw toolchain in a Windows environment. I am using the provided cmake CMakeLists.txt in both cases, which makes it very easy to compile to target Windows and generate a static library.\r\n\r\nHere is what I'm seeing:\r\n\r\n1) ucl_util.c fails to build out of the box because the NBBY macro is not recognized in either of these toolchains, or any mingw based toolchain I've come across. Thus, I'd propose adding something like this:\r\n\r\n\t#ifdef _WIN32\r\n\t#include <limits.h>\r\n\t#define NBBY CHAR_BIT\r\n\t#endif\r\n\r\n2) Most Windows compatible toolchains also do not support globbing due to missing glob.h (it must be added specially to certain toolchains) so I had to comment out the dependency for glob.h and comment out related globbing code in ucl_util.c code. I'd propose adding in #ifdef's around these globbing sets so we can build on Win32 (albeit with no glob support, which is fine for most users anyway)."}}