{"action":"created","issue":{"url":"https://api.github.com/repos/nothings/stb/issues/116","labels_url":"https://api.github.com/repos/nothings/stb/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/nothings/stb/issues/116/comments","events_url":"https://api.github.com/repos/nothings/stb/issues/116/events","html_url":"https://github.com/nothings/stb/issues/116","id":72286958,"number":116,"title":"stb_vorbis.c fails to compile because of __forceinline (windows cross-compile)","user":{"login":"leiradel","id":357536,"avatar_url":"https://avatars.githubusercontent.com/u/357536?v=3","gravatar_id":"","url":"https://api.github.com/users/leiradel","html_url":"https://github.com/leiradel","followers_url":"https://api.github.com/users/leiradel/followers","following_url":"https://api.github.com/users/leiradel/following{/other_user}","gists_url":"https://api.github.com/users/leiradel/gists{/gist_id}","starred_url":"https://api.github.com/users/leiradel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leiradel/subscriptions","organizations_url":"https://api.github.com/users/leiradel/orgs","repos_url":"https://api.github.com/users/leiradel/repos","events_url":"https://api.github.com/users/leiradel/events{/privacy}","received_events_url":"https://api.github.com/users/leiradel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T21:30:06Z","updated_at":"2015-04-30T21:38:20Z","closed_at":null,"body":"I'm compiling my application in a Debian x64 box, using an [Windows cross-compilation toolchain](http://sourceforge.net/projects/mingw-w64/files/).\r\n\r\nThe error message is:\r\n\r\n    In file included from ../retroluxury/src/rl_sound.c:25:0:\r\n    ../retroluxury/src/stb_vorbis.c:941:1: error: multiple storage classes in declaration specifiers\r\n     static __forceinline uint32 crc32_update(uint32 crc, uint8 byte)\r\n     ^\r\n\r\nfollowed by four more identical errors at lines 1558, 2042, and 2599.\r\n\r\n`__forceinline` default definition has `extern` in it, as the error message shows when I add `#define __forceinline` to `std_vorbis.c`:\r\n\r\n    In file included from ../retroluxury/src/rl_sound.c:25:0:\r\n    ../retroluxury/src/stb_vorbis.c:565:0: warning: \"__forceinline\" redefined [enabled by default]\r\n     #define __forceinline\r\n     ^\r\n    In file included from /opt/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10:0,\r\n                     from /opt/mingw64/x86_64-w64-mingw32/include/stdint.h:28,\r\n                     from /opt/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.0/include/stdint.h:9,\r\n                     from ../retroluxury/src/rl_sound.h:6,\r\n                     from ../retroluxury/src/rl_sound.c:1:\r\n    /opt/mingw64/x86_64-w64-mingw32/include/_mingw.h:263:0: note: this is the location of the previous definition\r\n     #define __forceinline extern __inline__ __attribute__((__always_inline__,__gnu_inline__))\r\n     ^\r\n\r\nand it clashes with the functions declarations which are `static`.\r\n\r\nI'm not sure how to fix this without redefining `__forceinline` in `std_vorbis.c`."},"comment":{"url":"https://api.github.com/repos/nothings/stb/issues/comments/97976046","html_url":"https://github.com/nothings/stb/issues/116#issuecomment-97976046","issue_url":"https://api.github.com/repos/nothings/stb/issues/116","id":97976046,"user":{"login":"nothings","id":7525026,"avatar_url":"https://avatars.githubusercontent.com/u/7525026?v=3","gravatar_id":"","url":"https://api.github.com/users/nothings","html_url":"https://github.com/nothings","followers_url":"https://api.github.com/users/nothings/followers","following_url":"https://api.github.com/users/nothings/following{/other_user}","gists_url":"https://api.github.com/users/nothings/gists{/gist_id}","starred_url":"https://api.github.com/users/nothings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nothings/subscriptions","organizations_url":"https://api.github.com/users/nothings/orgs","repos_url":"https://api.github.com/users/nothings/repos","events_url":"https://api.github.com/users/nothings/events{/privacy}","received_events_url":"https://api.github.com/users/nothings/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T21:38:20Z","updated_at":"2015-04-30T21:38:20Z","body":"This appears to be a mingw bug? Are you using a current version of mingw?\r\n\r\nhttp://sourceforge.net/p/mingw-w64/mailman/message/32882927/\r\n\r\n"}}