From 451981a928ff17ddecebb5fbd6b72e5e15a3b78a Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Fri, 22 Nov 2013 19:46:01 +0000
Subject: [PATCH] python : macro to support numpy < 1.7

---
 wrappers/gmshpy/gmshtypemaps.i | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wrappers/gmshpy/gmshtypemaps.i b/wrappers/gmshpy/gmshtypemaps.i
index f7f813e1f4..f7f78b6703 100644
--- a/wrappers/gmshpy/gmshtypemaps.i
+++ b/wrappers/gmshpy/gmshtypemaps.i
@@ -13,6 +13,8 @@
   %#include <numpy/arrayobject.h>
   %#if NPY_API_VERSION < 0x00000007
   %#define NPY_ARRAY_FARRAY NPY_FARRAY
+  %#define NPY_ARRAY_F_CONTIGUOUS NPY_F_CONTIGUOUS
+  %#define PyArray_SetBaseObject(a, b) PyArray_BASE(a) = b
   %#endif
   %#endif
   fullMatrix<double> *pySequenceToFullMatrixDouble(PyObject *o) {
-- 
GitLab