1 |
2016-06-14 16:54 GMT+08:00 Eric Fiselier <eric@××××.ca>: |
2 |
>> Does libc++ also rely on this macro to work on Linux? |
3 |
> |
4 |
> Yes. Adding -U_GNU_SOURCE during the libc++ build results in a litany of |
5 |
> errors. |
6 |
> The libc++ headers depend on a number of C library symbols that only get |
7 |
> defined when -D_GNU_SOURCE=1 is present. |
8 |
|
9 |
Is it feasible to use some finer-grain control like _ISOC99_SOURCE, |
10 |
instead of resorting to the too versatile _GNU_SOURCE? |
11 |
|
12 |
I'd be willing to work out such a patch to libc++, if it makes sense. |
13 |
|
14 |
|
15 |
Lei |