[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    Re: [boost] filesystem 1.61.0 and cygwin: Windows assumed, posix expected
From:       Frédéric Bron <frederic.bron () m4x ! org>
Date:       2016-08-12 20:23:16
Message-ID: CAPw2spgSsjFMKxNG8Euub1NHH91V+OBFekrKS1imp6u44NO3Tg () mail ! gmail ! com
[Download RAW message or body]

> On cygwin, the following program
>
>   auto p = boost::filesystem::path{"foo"};
>   p /= "bar";
>   std::cout << p.string() << '\n';
>
> outputs:
> foo\bar
>
> but cygwin is a posix system and I expect:
> foo/bar
>
> I read in the doc that "User-defined BOOST_POSIX_API and
> BOOST_WINDOWS_API macros are no longer supported."

I guess system/api_config.hpp should be:

-# if defined(_WIN32) || defined(__CYGWIN__) // Windows default,
including MinGW and Cygwin
+# if defined(_WIN32) // Windows default, including MinGW
#   define BOOST_WINDOWS_API
# else
#   define BOOST_POSIX_API
# endif

Frédéric

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic