summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2017-09-12 15:20:41 +0200
committerMatěj Cepl <mcepl@cepl.eu>2017-09-20 17:14:13 +0200
commit0188edb1c5791c31c292ab0cad2ef9b27bafbc85 (patch)
tree524bf8cea39c343f8dc326058b02bcfad6091a62
parent13c193ff6e8425e89002a526331838f0030d5fc5 (diff)
downloadm2crypto-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.i5
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>