mirror of https://github.com/swig/swig
Mark in-header function definitions as "inline"
Otherwise, generating the `clientdata_prop` modules will duplicate symbols, leading to linker errors if the resulting modules are linked (or possibly loaded) simultaneously.
This commit is contained in:
parent
a8e73e3ad7
commit
c9fbb81e4a
|
@ -6,7 +6,7 @@ class A {
|
|||
|
||||
typedef A tA;
|
||||
|
||||
void test_A(A *a) {}
|
||||
void test_tA(tA *a) {}
|
||||
inline void test_A(A *a) {}
|
||||
inline void test_tA(tA *a) {}
|
||||
|
||||
tA *new_tA() { return new tA(); }
|
||||
inline tA *new_tA() { return new tA(); }
|
||||
|
|
Loading…
Reference in New Issue