Bug#914688: Default defines discrepancy
Control: forwaded -1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314
On Mon, Nov 26, 2018 at 12:28:28PM +0000, Dimitri John Ledkov wrote:
> xnox@diamond:~$ g++ -std=c++14 -dM -E -x c++ - < /dev/null | grep linux
> #define __linux__ 1
> #define __gnu_linux__ 1
>
> xnox@diamond:~$ g++ -std=gnu++14 -dM -E -x c++ - < /dev/null | grep linux
> #define __linux 1
> #define __linux__ 1
> #define __gnu_linux__ 1
> #define linux 1
>
> The same is not observed on other architectures. And for some reason,
> boost cares about "linux" or "__linux", and is not sensitive to
> "__linux__" nor "__gnu_linux__".
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1349907/comments/1
> Regards,
>
> Dimitri.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: