Skip to content

Commit a7f4a20

Browse files
committed
Fix vecstim.mod extern declarations for NEURON 9 compatibility
The explicit parameter types added in 7f43d9b conflict with declarations already provided by NEURON >= 8.2.0 headers, causing an "ambiguating new declaration" error in the generated C++. Guard them with #ifndef NRN_VERSION_GTEQ_8_2_0, consistent with the nrn_random_pick fix in 8699516.
1 parent 0d45671 commit a7f4a20

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyNN/neuron/nmodl/vecstim.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ NET_RECEIVE (w) {
113113

114114

115115
VERBATIM
116+
#ifndef NRN_VERSION_GTEQ_8_2_0
116117
extern double* vector_vec(void *);
117118
extern int vector_capacity(void *);
118119
extern void* vector_arg(int);
119-
ENDVERBATIM
120+
#endif
121+
ENDVERBATIM
120122

121123
PROCEDURE element() {
122124
VERBATIM

0 commit comments

Comments
 (0)