File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ typedef unsigned __int8 uint8_t;
18
18
# undef _XOPEN_SOURCE
19
19
#endif
20
20
21
+ // Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
22
+ #if defined(__sun) || defined(sun)
23
+ #if defined(_XPG4)
24
+ #undef _XPG4
25
+ #endif
26
+ #if defined(_XPG3)
27
+ #undef _XPG3
28
+ #endif
29
+ #endif
30
+
21
31
#include < Python.h>
22
32
23
33
#if PY_MAJOR_VERSION >= 3
Original file line number Diff line number Diff line change 25
25
# undef _XOPEN_SOURCE
26
26
#endif
27
27
28
+ // Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
29
+ #if defined(__sun) || defined(sun)
30
+ #if defined(_XPG4)
31
+ #undef _XPG4
32
+ #endif
33
+ #if defined(_XPG3)
34
+ #undef _XPG3
35
+ #endif
36
+ #endif
37
+
28
38
#include < Python.h>
29
39
#include < numpy/ndarrayobject.h>
30
40
You can’t perform that action at this time.
0 commit comments