|
@@ -72,15 +72,19 @@ namespace matplotlibcpp {
|
|
}
|
|
}
|
|
|
|
|
|
private:
|
|
private:
|
|
|
|
+#ifndef WITHOUT_NUMPY
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#if PY_MAJOR_VERSION >= 3
|
|
- int import_numpy() {
|
|
|
|
|
|
+ void *import_numpy() {
|
|
import_array(); // initialize C-API
|
|
import_array(); // initialize C-API
|
|
|
|
+ return NULL;
|
|
}
|
|
}
|
|
#else
|
|
#else
|
|
void import_numpy() {
|
|
void import_numpy() {
|
|
import_array(); // initialize C-API
|
|
import_array(); // initialize C-API
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
+
|
|
_interpreter() {
|
|
_interpreter() {
|
|
|
|
|
|
// optional but recommended
|
|
// optional but recommended
|