1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add a patch to avoid C++ keyword conflict in a header file.

Spotted by:	thierry
This commit is contained in:
Hye-Shik Chang 2005-11-18 12:50:57 +00:00
parent 32f2a2adbb
commit e473fbf387
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148720
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= numarray
PORTVERSION= 1.4.1
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= numpy

View File

@ -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;