Boost C++ Libraries: Ticket #12420: Boost filesystem should use POSIX API on cygwin https://svn.boost.org/trac10/ticket/12420 <p> Hi, </p> <p> On cygwin, the following program </p> <p> #include &lt;iostream&gt; </p> <p> #include &lt;boost/filesystem.hpp&gt; </p> <p> int main() { </p> <blockquote> <p> auto p = boost::filesystem::path{"foo"}; p /= "bar"; std::cout &lt;&lt; p.string() &lt;&lt; '\n'; return 0; </p> </blockquote> <p> } </p> <p> outputs: foo\bar </p> <p> but cygwin is a posix system and I expect: foo/bar </p> <p> I read in the doc that "User-defined BOOST_POSIX_API and BOOST_WINDOWS_API macros are no longer supported." </p> <p> I guess system/api_config.hpp should be: </p> <table class="wiki"> <tr>-# if defined(_WIN32) <td> defined(<span class="underline">CYGWIN</span>) <em> Windows default, </em></td></tr></table> <p> including MinGW and Cygwin +# if defined(_WIN32) <em> Windows default, including MinGW # define BOOST_WINDOWS_API # else # define BOOST_POSIX_API # endif </em></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12420 Trac 1.4.3 frederic.bron@… Mon, 29 Aug 2016 11:08:46 GMT attachment set https://svn.boost.org/trac10/ticket/12420 https://svn.boost.org/trac10/ticket/12420 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1_61_0.patch</span> </li> </ul> <p> Proposed patch </p> Ticket frederic.bron@… Mon, 29 Aug 2016 11:09:41 GMT <link>https://svn.boost.org/trac10/ticket/12420#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12420#comment:1</guid> <description> <p> I added the patch because it was all garbaged by the tracking system in the post. </p> </description> <category>Ticket</category> </item> </channel> </rss>