[Python-Dev] Make _GNU_SOURCE default for gcc ?!
Andrew Kuchling
akuchlin@mems-exchange.org
Tue, 4 Jul 2000 10:13:47 -0400
On Tue, Jul 04, 2000 at 11:45:05AM +0200, M.-A. Lemburg wrote:
>#ifdef __GNUC__
># define _GNU_SOURCE
>#endif
Doesn't it make more sense to define _GNU_SOURCE only if the C library
is glibc? You could be using GCC on Solaris with Sun's libc, for
example, where _GNU_SOURCE would be meaningless. Probably you have to
define _XOPEN_SOURCE everywhere, and _GNU_SOURCE if the libc is glibc.
--amk