mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Add a patch to avoid C++ keyword conflict in a header file.
Spotted by: thierry
This commit is contained in:
parent
32f2a2adbb
commit
e473fbf387
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148720
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= numarray
|
||||
PORTVERSION= 1.4.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= numpy
|
||||
|
14
math/py-numarray/files/patch-Include::numarray::nummacro.h
Normal file
14
math/py-numarray/files/patch-Include::numarray::nummacro.h
Normal 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;
|
Loading…
Reference in New Issue
Block a user