We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf2be71 commit f5f8ce3Copy full SHA for f5f8ce3
1 file changed
matplotlibcpp.h
@@ -1,5 +1,9 @@
1
#pragma once
2
3
+// Python headers must be included before any system headers, since
4
+// they define _POSIX_C_SOURCE
5
+#include <Python.h>
6
+
7
#include <vector>
8
#include <map>
9
#include <array>
@@ -10,8 +14,6 @@
10
14
#include <cstdint> // <cstdint> requires c++11 support
11
15
#include <functional>
12
16
13
-#include <Python.h>
-
17
#ifndef WITHOUT_NUMPY
18
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
19
# include <numpy/arrayobject.h>
0 commit comments