[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#914688: Default defines discrepancy



Control: tags -1 + wontfix

closing as won't fix, same as upstream did.  Just use the __linux__ macro.

On 26.11.18 13:52, Adrian Bunk wrote:
> 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
> 


Reply to: