Skip to content

Commit

Permalink
Merge pull request #1471 from brian-team/fix_GSL_function_def
Browse files Browse the repository at this point in the history
Mark GSL functions as extern
  • Loading branch information
mstimberg committed Jun 5, 2023
2 parents 20c8ff4 + ba50d37 commit 5d79e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brian2/codegen/generators/GSL_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ class GSLCythonCodeGenerator(GSLCodeGenerator):
syntax = {
"end_statement": "",
"access_pointer": ".",
"start_declare": "cdef ",
"start_declare": "cdef extern ",
"open_function": ":",
"open_struct": ":",
"end_function": "",
Expand Down Expand Up @@ -1113,7 +1113,7 @@ def __getattr__(self, item):
syntax = {
"end_statement": ";",
"access_pointer": "->",
"start_declare": "",
"start_declare": 'extern "C" ',
"open_function": "\n{",
"open_struct": "\n{",
"end_function": "\n}",
Expand Down

0 comments on commit 5d79e95

Please sign in to comment.