diff options
author | Tim King <taking@cs.nyu.edu> | 2017-10-26 20:13:25 -0700 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2017-10-26 20:13:25 -0700 |
commit | 425bfb52e2a6aca7a968ccf3785356ac469ec046 (patch) | |
tree | 1d502359073af41942cb0473394e34f50f249506 /src/cvc4.i | |
parent | 59c85cd022a38ec371a78f93fba7b2be35203055 (diff) |
Adds a macro to SWIG to ignore the override and final C++11 keywords in older versions of SWIG. (#1281)
Diffstat (limited to 'src/cvc4.i')
-rw-r--r-- | src/cvc4.i | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cvc4.i b/src/cvc4.i index e1138649c..58dceb6b1 100644 --- a/src/cvc4.i +++ b/src/cvc4.i @@ -1,3 +1,10 @@ +// We safely ignore some C++11 keywords that older versions of SWIG cannot +// handle. +#if SWIG_VERSION < 0x030000 +%define final %enddef +%define override %enddef +#endif + %import "bindings/swig.h" %include "stdint.i" |