diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-09-12 15:20:41 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-09-20 17:14:13 +0200 |
commit | 0188edb1c5791c31c292ab0cad2ef9b27bafbc85 (patch) | |
tree | 524bf8cea39c343f8dc326058b02bcfad6091a62 | |
parent | 13c193ff6e8425e89002a526331838f0030d5fc5 (diff) | |
download | m2crypto-0188edb1c5791c31c292ab0cad2ef9b27bafbc85.tar.gz |
Make sure __WCHAR_MAX__ and __WCHAR_MIN__ are defined.
It seems to me that swig 3.0 doesn't read constants provided by the
compiler itself (e.g., __WCHAR_MAX__) and goes into weird loops to find
out.
-rw-r--r-- | SWIG/_m2crypto.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SWIG/_m2crypto.i b/SWIG/_m2crypto.i index bd5de43..660c346 100644 --- a/SWIG/_m2crypto.i +++ b/SWIG/_m2crypto.i @@ -15,6 +15,11 @@ %nothreadblock; %nothreadallow; +#if SWIG_VERSION >= 0x030000 +#define __WCHAR_MAX__ __WCHAR_MAX +#define __WCHAR_MIN__ __WCHAR_MIN +#endif + %{ #include <openssl/err.h> #include <openssl/rand.h> |