about summary refs log tree commit diff stats
path: root/docs
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2019-10-15 12:22:48 +0000
committerDmytro Podgornyi <dmytrop@mellanox.com>2019-10-15 12:30:38 +0000
commit69bba3ea4e38283495dcc1c5a541964bb5175163 (patch)
tree7d73ca8edc167a5d8db7d0b1ee3abc3ee7925e1a /docs
parentd0c3d3fd6b7d01535c2dd1d744b159b14afb5f8b (diff)
downloadprofani-tty-69bba3ea4e38283495dcc1c5a541964bb5175163.tar.gz
plugins/python: fix double _XOPEN_SOURCE definition
ncursesw defines _XOPEN_SOURCE macro via command-line. In particular, it
is defined in ncursesw.pc and extracted via pkg-config. From other side,
Python defines the same macro unconditionally in pyconfig.h. Python-3.x
defines the macro with value different than ncursesw does. In turn, this
causes a warning that the macro is redefined. And warnings are treated
as errors.

Since both entities define the mecro unconditionally, we can't simply
reorder headers as Python developers suggest. So, undefine the macro
just before the <Python.h> to fix this silly issue.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
>366eecc1 ^
0fe70ce7 ^
366eecc1 ^




4f454b6a ^







366eecc1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165