Boost logo

Boost Users :

Subject: [Boost-users] BOOST_OS_UNIX not working
From: Troy Heron (troy.heron_at_[hidden])
Date: 2014-07-07 00:23:22


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net