Re: more getopt -- let's fix it (Re: minting with "-z")
Hubert Chan <[email protected]>
| Newsgroups | gmane.mail.spam.hashcash |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Adam" == Adam Back <[email protected]> writes: Adam> actually a perhaps simpler way to do it is look for GNU, but I Adam> didn't see an option for that in Jonathan's output. Is __GNUC__ a Adam> good indication of having a GNU glibc? Maybe a rough Adam> approximation. Do #include <ctype.h>, which is guaranteed to always exist. In glibc, ctype.h #includes features.h which, in glibc, defines macros __GLIBC__ and __GLIBC_MINOR__ (which specify the major and minor versions). It also defines __GNU_LIBRARY__, but its use is deprecated. So just #include <ctype.h>, and then test for one of those macros. -- Hubert Chan <[email protected]> - http://www.uhoreg.ca/ PGP/GnuPG key: 1024D/124B61FA Fingerprint: 96C5 012F 5F74 A5F7 1FF7 5291 AF29 C719 124B 61FA Key available at wwwkeys.pgp.net. Encrypted e-mail preferred.