Mail Archives: cygwin/2012/02/20/18:05:44
--------------enigB92B4E8CDFDA799DA5AF8715
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On 02/20/2012 03:58 PM, Thomas Wolff wrote:
>> Wrong. GNU/Linux does this too. On my Fedora machine,
>>
>> $ printf '#include<stddef.h>\n#include<stdio.h>\n' | gcc -E -\
>> |grep '^# 1 "/'
...
>> # 1 "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/include/stddef.h" 1 3 4
>> # 1 "/usr/include/wchar.h" 1 3 4
>> # 1 "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/include/stdarg.h" 1 3 4
>=20
> As I interpret this, stddef.h - containing those constants - is the only
> file with this setup, so be it.
Reading the trace I posted above, it is not just <stddef.h>, but also at
least <stdarg.h>, and probably others, too.
> (I had actually checked on a SunOS system.)
SunOS isn't GNU/Linux, so it is less relevant to how cygwin behaves
(since cygwin is striving to be a Linux emulation, not a POSIX
emulation). Not to mention that using gcc on SunOS _also_ prefers to
translate <stddef.h> to a gcc-specific directory, rather than
/usr/include/stddef.h, since gcc relies on aspects that are specific to
the gcc compiler, while /usr/include/stddef.h is tied to the system's
own 'cc' that doesn't understand gcc extensions.
--=20
Eric Blake eblake AT redhat DOT com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
--------------enigB92B4E8CDFDA799DA5AF8715
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBCAAGBQJPQtGoAAoJEKeha0olJ0Nq7wgIAJWJkSM/RyPnmwxGzr6t023n
HXGslsccgordfesE+bChQkqwk03zSF9Lo0eP3i6h5LjsT1x1G0Gd3plxELuM/vxE
FeIv3fCk21Nazo1Rmxvow0IqL+WMxLV3rz8JzsD0cYDVMnaikl6jlWnTEQg+94X5
oWA46FDLvaqXfE/ZW7Wl/hhxnNEE+T+voHzTxIfB8o6NpeBZN5EfoxFQ4QneQqre
ILWMTBADiRIe/5IcHj9fQxolhSBP9vqdkUQ2J/5uazMG67HbBLctXinoKQ3XeHPB
cqGuHuR6JRTiXSZernq18wq5JMS+tkAboO9N0r3S2nzl1UJHsu7cGXZPo+DaGvE=
=V4Ng
-----END PGP SIGNATURE-----
--------------enigB92B4E8CDFDA799DA5AF8715--
- Raw text -