diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2005-11-18 12:50:57 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2005-11-18 12:50:57 +0000 |
commit | e473fbf387da198f74e986973c9e0533b8cd49ab (patch) | |
tree | 980f8341e8e337ad552aee7d5fa4edd2c89d012a /math/py-numarray/files/patch-Include::numarray::nummacro.h | |
parent | - Update to 2.12.1 (diff) |
Add a patch to avoid C++ keyword conflict in a header file.
Spotted by: thierry
Notes
Notes:
svn path=/head/; revision=148720
Diffstat (limited to '')
-rw-r--r-- | math/py-numarray/files/patch-Include::numarray::nummacro.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/math/py-numarray/files/patch-Include::numarray::nummacro.h b/math/py-numarray/files/patch-Include::numarray::nummacro.h new file mode 100644 index 000000000000..1cb40e378d5f --- /dev/null +++ b/math/py-numarray/files/patch-Include::numarray::nummacro.h @@ -0,0 +1,14 @@ +--- Include/numarray/nummacro.h.orig Fri Nov 18 20:42:15 2005 ++++ Include/numarray/nummacro.h Fri Nov 18 20:43:33 2005 +@@ -24,7 +24,11 @@ + int n_outs, PyObject*outs[]); + typedef struct { + PyObject_HEAD ++#ifdef __cplusplus ++ PyObject *operator_; /* ufunc name */ ++#else + PyObject *operator; /* ufunc name */ ++#endif + PyObject *identity; /* identity value, e.g. 0 for + or 1 for * */ + int n_inputs, n_outputs; + _ufunc_function call; |