As was written earlier -- <http://lists.xiph.org/pipermail/flac-dev/2016-January/005762.html> share/compat.h indirectly includes windows.h (and other files because of it). It is necessary for declaration of CreateFile_utf8(), but only two files need it: src/flac/decode.c and src/share/grabbag/file.c In <http://lists.xiph.org/pipermail/flac-dev/2016-January/005764.html> was proposed to add a preprocessor macro to solve the issue. The patch is attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: use_winapi_macro.patch Type: application/octet-stream Size: 1927 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20160202/f2f67f04/attachment-0001.obj