8000 Change order of includes for Ubuntu · kkoci/matplotlib@5749338 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5749338

Browse files
committed
Change order of includes for Ubuntu
1 parent 4aa6b7e commit 5749338

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/_png.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,22 @@
1010
of harmless warnings.
1111
*/
1212

13-
#include <vector>
1413

1514
#include "numpy_cpp.h"
1615
#include "mplutils.h"
1716
#include "file_compat.h"
1817

1918
extern "C" {
20-
#ifdef __linux__
2119
# include <png.h>
2220
# ifdef _POSIX_C_SOURCE
2321
# undef _POSIX_C_SOURCE
2422
# endif
2523
# ifdef _XOPEN_SOURCE
2624
# undef _XOPEN_SOURCE
2725
# endif
28-
# include "Python.h"
29-
#else
30-
31-
/* Python API mandates Python.h is included *first* */
32-
# include "Python.h"
33-
34-
# include <png.h>
35-
#endif
3626
}
27+
# include <vector>
28+
# include "Python.h"
3729

3830

3931
// As reported in [3082058] build _png.so on aix

0 commit comments

Comments
 (0)
0