On November 26, 2015 6:10:43 AM CST, Charles Forsyth 
<[email protected]> wrote:
>On 25 November 2015 at 17:10, Vasudev Kamath <[email protected]>
>wrote:
>
>> In file included from
>>
>/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/include/lib9.h:9:0,
>>                  from 9obj.c:5:
>> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and
>> _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
>> _DEFAULT_SOURCE"
>>
>
>Of course, that particular one is just the latest crud from the
>constantly
>mutating gcc/clang environments.
>Why "DEFAULT" if it's not in fact the default?

That's actually mostly glibc, the only library on earth that makes me want to 
bang my head on the floor.

I don't remember what GNU extension it is where glibc declares a function that 
Posix says should return no value as returning a value. So, when you use it 
like you're supposed to, you get errors.

Then there's also crap like 
https://github.com/kirbyfan64/qlibc/commit/fb550e9f35a20492bcb6a767e9e3d33e30c00c59.
 It was a PR I opened. strptime was undefined. Depending on the system, you 
need to define one of:

- _USE_XOPEN
- _XOPEN_SOURCE
- _BSD_SOURCE
and now:
- _DEFAULT_SOURCE
-- 
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.

Reply via email to