Commit e528de6
committed
pyutil: silence a warning caused by Python.h
There is no great solution. Python.h expects to be included first and to be
allowed to pollute the define namespace. We don't want to do that, because in
other places we want to include sd-messages.h early, and also we want to use a
higher standard than the obsolete version that Python.h declares.
Unfortunately, there is no nice solution to this problem. So call #undef
enough times to silence warnings and after including the header, define the
standard for our code to a recent version.1 parent a5a6c86 commit e528de6
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
| |||
0 commit comments