Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c17fb8c + c2c03df commit 101eeccCopy full SHA for 101eecc
src/_png.cpp
@@ -10,30 +10,23 @@
10
of harmless warnings.
11
*/
12
13
-#include <vector>
14
-
15
-#include "numpy_cpp.h"
16
-#include "mplutils.h"
17
-#include "file_compat.h"
18
19
extern "C" {
20
-#ifdef __linux__
21
# include <png.h>
22
# ifdef _POSIX_C_SOURCE
23
# undef _POSIX_C_SOURCE
24
# endif
25
# ifdef _XOPEN_SOURCE
26
# undef _XOPEN_SOURCE
27
28
-# include "Python.h"
29
-#else
+}
30
31
-/* Python API mandates Python.h is included *first* */
32
+#include "numpy_cpp.h"
+#include "mplutils.h"
+#include "file_compat.h"
33
34
-# include <png.h>
35
-#endif
36
-}
+# include <vector>
+# include "Python.h"
37
38
39
// As reported in [3082058] build _png.so on aix
0 commit comments