Message188842
Insisting on including Python.h first is just broken.
GNU libc's /usr/include/features.h will override it anyway when _GNU_SOURCE is defined:
# undef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L
# undef _XOPEN_SOURCE
# define _XOPEN_SOURCE 700
So if you define _GNU_SOURCE ( which happens automatically when using G++) the annoying defines in pyconfig.h are overridden anyway, so why not just only define them if not already defined?
Either you include Python.h first and its settings get ignored by glibc, or you don't include it first and you get annoying warnings. |
|
Date |
User |
Action |
Args |
2013-05-10 15:37:26 | Jonathan.Wakely | set | recipients:
+ Jonathan.Wakely, loewis, eugene_beast |
2013-05-10 15:37:26 | Jonathan.Wakely | set | messageid: <1368200246.24.0.651875616034.issue1045893@psf.upfronthosting.co.za> |
2013-05-10 15:37:26 | Jonathan.Wakely | link | issue1045893 messages |
2013-05-10 15:37:26 | Jonathan.Wakely | create | |
|