|
@@ -1,5 +1,9 @@
|
|
#pragma once
|
|
#pragma once
|
|
|
|
|
|
|
|
+// Python headers must be included before any system headers, since
|
|
|
|
+// they define _POSIX_C_SOURCE
|
|
|
|
+#include <Python.h>
|
|
|
|
+
|
|
#include <vector>
|
|
#include <vector>
|
|
#include <map>
|
|
#include <map>
|
|
#include <array>
|
|
#include <array>
|
|
@@ -10,8 +14,6 @@
|
|
#include <cstdint> // <cstdint> requires c++11 support
|
|
#include <cstdint> // <cstdint> requires c++11 support
|
|
#include <functional>
|
|
#include <functional>
|
|
|
|
|
|
-#include <Python.h>
|
|
|
|
-
|
|
|
|
#ifndef WITHOUT_NUMPY
|
|
#ifndef WITHOUT_NUMPY
|
|
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
|
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
|
# include <numpy/arrayobject.h>
|
|
# include <numpy/arrayobject.h>
|