{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5199","repository_url":"https://api.github.com/repos/openframeworks/openFrameworks","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5199/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5199/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5199/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/5199","id":170957061,"number":5199,"title":"ofMain.h undefines some Windows macros","user":{"login":"oxillo","id":13654859,"avatar_url":"https://avatars.githubusercontent.com/u/13654859?v=3","gravatar_id":"","url":"https://api.github.com/users/oxillo","html_url":"https://github.com/oxillo","followers_url":"https://api.github.com/users/oxillo/followers","following_url":"https://api.github.com/users/oxillo/following{/other_user}","gists_url":"https://api.github.com/users/oxillo/gists{/gist_id}","starred_url":"https://api.github.com/users/oxillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxillo/subscriptions","organizations_url":"https://api.github.com/users/oxillo/orgs","repos_url":"https://api.github.com/users/oxillo/repos","events_url":"https://api.github.com/users/oxillo/events{/privacy}","received_events_url":"https://api.github.com/users/oxillo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T20:53:31Z","updated_at":"2016-08-17T19:15:57Z","closed_at":null,"body":"On the current master, the following code won't compile because of  error: 'FormatMessage' was not declared in this scope\r\n\r\n```\r\n#include \"ofMain.h\"\r\n//#include \"ofApp.h\" with ofApp.ha having\r\n#include <windows.h>\r\n#include <stdio.h>\r\n#include <comdef.h>\r\n#include \"ofMain.h\"\r\n\r\nint main( ){\r\n    return 0;\r\n}\r\n```\r\n\r\nIf the first #include \"ofMain.h\" is commented, it compiles! It doesn't if it's the second one that is commented.\r\nTested on MSYS2 only."},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/240517159","html_url":"https://github.com/openframeworks/openFrameworks/issues/5199#issuecomment-240517159","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5199","id":240517159,"user":{"login":"oxillo","id":13654859,"avatar_url":"https://avatars.githubusercontent.com/u/13654859?v=3","gravatar_id":"","url":"https://api.github.com/users/oxillo","html_url":"https://github.com/oxillo","followers_url":"https://api.github.com/users/oxillo/followers","following_url":"https://api.github.com/users/oxillo/following{/other_user}","gists_url":"https://api.github.com/users/oxillo/gists{/gist_id}","starred_url":"https://api.github.com/users/oxillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxillo/subscriptions","organizations_url":"https://api.github.com/users/oxillo/orgs","repos_url":"https://api.github.com/users/oxillo/repos","events_url":"https://api.github.com/users/oxillo/events{/privacy}","received_events_url":"https://api.github.com/users/oxillo/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T19:15:57Z","updated_at":"2016-08-17T19:15:57Z","body":"After some digging, I've found that POCO undefines some Windows macro. One can disable that by defining POCO_NO_UNWINDOWS. \r\nI don't know what is the best way to fix that : should we let the user do it in config.make on a per-project basis or should we define POCO_NO_UNWINDOWS in config.msys2.default.mk that is used to compile all MSYS2 projects.\r\nI would go for the 2nd choice. I can submit a PR."}}
{"actor":{"display_login":"oxillo"}}