diff --git a/src/_png.cpp b/src/_png.cpp index 0ca609e216c4..852a5d6e2a41 100644 --- a/src/_png.cpp +++ b/src/_png.cpp @@ -10,14 +10,8 @@ of harmless warnings. */ -#include - -#include "numpy_cpp.h" -#include "mplutils.h" -#include "file_compat.h" extern "C" { -#ifdef __linux__ # include # ifdef _POSIX_C_SOURCE # undef _POSIX_C_SOURCE @@ -25,15 +19,14 @@ extern "C" { # ifdef _XOPEN_SOURCE # undef _XOPEN_SOURCE # endif -# include "Python.h" -#else +} -/* Python API mandates Python.h is included *first* */ -# include "Python.h" +#include "numpy_cpp.h" +#include "mplutils.h" +#include "file_compat.h" -# include -#endif -} +# include +# include "Python.h" // As reported in [3082058] build _png.so on aix