summaryrefslogtreecommitdiff
path: root/Lib/javascript/v8/javascriptruntime.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/javascript/v8/javascriptruntime.swg')
-rw-r--r--Lib/javascript/v8/javascriptruntime.swg5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/javascript/v8/javascriptruntime.swg b/Lib/javascript/v8/javascriptruntime.swg
index c78e04efb..773014f2a 100644
--- a/Lib/javascript/v8/javascriptruntime.swg
+++ b/Lib/javascript/v8/javascriptruntime.swg
@@ -56,6 +56,11 @@
%insert(runtime) %{
#include <v8.h>
+#if defined(V8_MAJOR_VERSION) && defined(V8_MINOR_VERSION)
+#undef SWIG_V8_VERSION
+#define SWIG_V8_VERSION (V8_MAJOR_VERSION * 256 + V8_MINOR_VERSION)
+#endif
+
#include <errno.h>
#include <limits.h>
#include <stdlib.h>