Fix C tests for Javascript and c++17
This commit is contained in:
parent
1c34be2d24
commit
1bd3e771a0
1 changed files with 12 additions and 0 deletions
|
|
@ -4,6 +4,18 @@
|
||||||
struct swig_tree;
|
struct swig_tree;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#if __cplusplus >= 201703L
|
||||||
|
/*
|
||||||
|
Fix for languages that compile C tests as C++:
|
||||||
|
error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
|
||||||
|
*/
|
||||||
|
#define register
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
// bug # 924413
|
// bug # 924413
|
||||||
%inline {
|
%inline {
|
||||||
void clear_tree_flags(register struct swig_tree *tp, register int i) {}
|
void clear_tree_flags(register struct swig_tree *tp, register int i) {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue