$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] Why is BOOST_OS_WINDOWS defined on Linux
From: David Demelier (markand_at_[hidden])
Date: 2018-05-03 18:48:54
Hello,
Everything is in the title, the following code compiles and shows
"Windows" even though I'm running Fedora 28. I can't understand.
#include <iostream>
#include <boost/predef.h>
int main()
{
#if defined(BOOST_OS_WINDOWS)
puts("Windows");
#endif
}
I'm using Boost 1.66 with GCC 8.0.1.
Regards,
-- David