Web lists-archives.com

Re: [Mingw-users] _XOPEN_SOURCE




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/04/17 15:12, Earnie wrote:
> On 4/20/2017 11:32 AM, Bryan Henderson wrote:
>> Keith Marshall, in a recent thread:
>>>  in _every_ case, the application is _required_ to specify the 
>>>  _XOPEN_SOURCE value for which conformance is desired.
>>
>> Why do you say that?  Common sense, or did you see it written
>> somewhere?
>>
>> And what do you make of the fact that every other X/Open-capable
>> C library explicitly recognizes _XOPEN_SOURCE = null string as
>> meaning "source code expects C library to conform to the original
>> X/Open standard?
> 
> This reference [1] supports Bryan's assertion.
> 
> [1] http://man7.org/linux/man-pages/man7/feature_test_macros.7.html

Yet, the example it cites requires a definition _with_ a value, (and 
moreover, a non-zero value); when preceded by:

#define _XOPEN_SOURCE  /* no value */

GCC will complain:

bar.c:2:19: error: operator '&&' has no left operand
 #if _XOPEN_SOURCE && _XOPEN_SOURCE < 500
                   ^

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJY+iYdAAoJEMCtNsY0flo/qbQP/3aaSy3U0UyhWqACGCi3wgiy
geFKtte5hVWRRcMpgRrnh2Yqto78rQaZ+SYrohOfWHlDNaYqbXvBZdokPKMadvQl
dgXTq+v+odqYev/G5IA47GFCQ4NUOWT3Anq9vOUsnCCvU42q692kMRU/BkCC+YUE
dQ8lyXDyZNFniV7rJDzMwosPa1TzIxfxDbTHFkU7MkzEt8qV4nVzOGsZypB96wEm
filkCjRRMhkYUnSyUyofd7k1prjM3r/aZnIisVgzxhYU8OMpKazINLAN+6m6viNW
Z0YVuBpRvs2TphPtCzjVOFWOiXJrNgcrapFOgj/rOoLoTR/EQP91y2yVUpKDzTgy
JkdoRvnnDSqdzt7cYdi4YNtldkGRxsrZfIXebGgjUWzjJw6fUXfadflHGB+Lywus
L19Sgv2EFQ8jjEiBUgWqlahfrR8eL8KJ7I8gS92gXUNiqOBBLDT/vNA9JC1UYPF4
xoTKN7/qYj4PThBBuuUWEhJ5VgwWBoWv2pWhd27f06rRobXy37hPu1VfEWrNk5MV
XQ2hVRdtCcumcIUqNluTW7csJYbM25dhLK2WTcG4r7Q79yHnTPeLf9gARbCskZA7
s8/2G5ua3irUvmL1rPyGlbszJZm7Rxw6Ag/YOKWQF8ei8s+YiYaxa9gzM/3YyJA4
UQIC3XiO3k94qS0Fp1aW
=ez2N
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe