{"action":"created","issue":{"url":"https://api.github.com/repos/fmtlib/fmt/issues/332","repository_url":"https://api.github.com/repos/fmtlib/fmt","labels_url":"https://api.github.com/repos/fmtlib/fmt/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/fmtlib/fmt/issues/332/comments","events_url":"https://api.github.com/repos/fmtlib/fmt/issues/332/events","html_url":"https://github.com/fmtlib/fmt/issues/332","id":156170750,"number":332,"title":"string.h collides with standard C string.h","user":{"login":"iSLC","id":2294815,"avatar_url":"https://avatars.githubusercontent.com/u/2294815?v=3","gravatar_id":"","url":"https://api.github.com/users/iSLC","html_url":"https://github.com/iSLC","followers_url":"https://api.github.com/users/iSLC/followers","following_url":"https://api.github.com/users/iSLC/following{/other_user}","gists_url":"https://api.github.com/users/iSLC/gists{/gist_id}","starred_url":"https://api.github.com/users/iSLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iSLC/subscriptions","organizations_url":"https://api.github.com/users/iSLC/orgs","repos_url":"https://api.github.com/users/iSLC/repos","events_url":"https://api.github.com/users/iSLC/events{/privacy}","received_events_url":"https://api.github.com/users/iSLC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-22T20:23:03Z","updated_at":"2016-05-22T22:14:31Z","closed_at":null,"body":"I'm including ``format.cc`` directly into my project which requires ``format.h`` to be available in the include paths. But ``string.h`` is also in the same folder as ``format.h`` and that confuses the compiler when trying to include the standard ``<cstring>`` which in turn includes the C ``string.h``. Resulting in ``<cstring>`` actually including the ``string.h`` that comes with the **{fmt}** library. Which causes every occurrence of any function from ``<cstring>`` to generate an ``error: '::func' has not been declared``.\r\n\r\nI would suggest to either use ``#include \"fmt/format.h\"`` inside ``format.cc`` so that I won't have to have the ``fmt`` folder in my include paths or rename the ``string.h`` header to something else.\r\n\r\nFor example, I renamed ``string.h`` to ``stringf.h`` and it compiles just fine.\r\n\r\nSame goes with ``time.h``\r\n\r\n_Compiler: MinGW GCC 5.3.0\r\nIDE: Code::Blocks_"},"comment":{"url":"https://api.github.com/repos/fmtlib/fmt/issues/comments/220859838","html_url":"https://github.com/fmtlib/fmt/issues/332#issuecomment-220859838","issue_url":"https://api.github.com/repos/fmtlib/fmt/issues/332","id":220859838,"user":{"login":"vitaut","id":576385,"avatar_url":"https://avatars.githubusercontent.com/u/576385?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaut","html_url":"https://github.com/vitaut","followers_url":"https://api.github.com/users/vitaut/followers","following_url":"https://api.github.com/users/vitaut/following{/other_user}","gists_url":"https://api.github.com/users/vitaut/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaut/subscriptions","organizations_url":"https://api.github.com/users/vitaut/orgs","repos_url":"https://api.github.com/users/vitaut/repos","events_url":"https://api.github.com/users/vitaut/events{/privacy}","received_events_url":"https://api.github.com/users/vitaut/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T22:14:31Z","updated_at":"2016-05-22T22:14:31Z","body":"That said it might be a good idea to add include prefix anyway to prevent confusion."}}
{"actor":{"display_login":"vitaut"}}