{"action":"closed","issue":{"url":"https://api.github.com/repos/nothings/stb/issues/282","repository_url":"https://api.github.com/repos/nothings/stb","labels_url":"https://api.github.com/repos/nothings/stb/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/nothings/stb/issues/282/comments","events_url":"https://api.github.com/repos/nothings/stb/issues/282/events","html_url":"https://github.com/nothings/stb/issues/282","id":147910521,"number":282,"title":"stb_vorbis compile problem due defines.","user":{"login":"kundelstein","id":8110992,"avatar_url":"https://avatars.githubusercontent.com/u/8110992?v=3","gravatar_id":"","url":"https://api.github.com/users/kundelstein","html_url":"https://github.com/kundelstein","followers_url":"https://api.github.com/users/kundelstein/followers","following_url":"https://api.github.com/users/kundelstein/following{/other_user}","gists_url":"https://api.github.com/users/kundelstein/gists{/gist_id}","starred_url":"https://api.github.com/users/kundelstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kundelstein/subscriptions","organizations_url":"https://api.github.com/users/kundelstein/orgs","repos_url":"https://api.github.com/users/kundelstein/repos","events_url":"https://api.github.com/users/kundelstein/events{/privacy}","received_events_url":"https://api.github.com/users/kundelstein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T00:21:14Z","updated_at":"2016-04-13T02:38:57Z","closed_at":"2016-04-13T02:38:57Z","body":"Including stb_vorbis into a project (as a single file) gets conflicts with some already existing libraries.\r\n\r\nConcrete example:\r\n\r\n`#include <stb_vorbis.c>`     // Yes, this is in \"include directories path\", not directly in \"project files\", this is the reason I didn't separate it into h and cpp.\r\n\r\nLine like:\r\n`#define C  (PLAYBACK_LEFT  | PLAYBACK_RIGHT | PLAYBACK_MONO)`\r\nmakes problems because it leaves **C** defined which is used somewhere in **glm**.\r\n\r\nThe obvious workaround is dividing the file into header and source file. Other choice would be using special unique naming or removing macros by #undef.\r\n\r\nJust had a look at this lib today so there is a lot I don't know about it, If I overlooked something I apologize."}}