OK, should now be fixed in the develop branch. But I can't directly tell since I don't have a Linux system to test with directly as I'm on vacation and hence away from my usual set of computers to test with.

Note, ultimately it seems I should make OS_UNIX and OS_SVR4 be platforms instead. As in BOOST_PLAT_UNIX and BOOST_PLAT_SVR4. As they are not pure OS's but API levels on top of other OS's. So I'll see if I can get that change done/approved before the next release.


On Sun, Jul 6, 2014 at 11:23 PM, Troy Heron <troy.heron@hixxy.org> wrote:
Hello,

I've just decided to give Boost.Predef a test drive for the first time and have found a problem using BOOST_OS_UNIX.

See the test snippet here: http://pastebin.com/4dLDAhEV

This is the output I get using both g++ 4.9.0 and clang++ 3.4.2:

BOOST_OS_UNIX: 0
BOOST_OS_LINUX: 1
unix: 1
__unix: 1
_XOPEN_SOURCE: 700
_POSIX_SOURCE: 1

Everything that is defined that should be to make BOOST_OS_UNIX be defined.

I haven't seen this mentioned anywhere before. I guess this a bug? I haven't looked at predef headers yet.

Thanks,
Troy


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users



--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail