summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Andersson <j.a.e.andersson@gmail.com>2016-07-02 19:58:18 -0500
committerJoel Andersson <j.a.e.andersson@gmail.com>2016-07-05 17:24:05 -0500
commit2ae4e76b36334e5e3d80bc3179f9db79923665dc (patch)
tree1efd4e604e2387b78b957bc088f6d842db893a7f
parent3703053cbe25655e3e20d7ddc0f621c3e7c6d47d (diff)
downloadswig-2ae4e76b36334e5e3d80bc3179f9db79923665dc.tar.gz
Issue #67 Tried to resolve Octave mex.h failure
-rw-r--r--Lib/matlab/matlabruntime.swg15
1 files changed, 11 insertions, 4 deletions
diff --git a/Lib/matlab/matlabruntime.swg b/Lib/matlab/matlabruntime.swg
index 407cd9db7..3a61f1e56 100644
--- a/Lib/matlab/matlabruntime.swg
+++ b/Lib/matlab/matlabruntime.swg
@@ -1,9 +1,16 @@
%insert(runtime) %{
+/* Workaround, Octave's mex.h lacks uint64_t */
+#include <stdint.h>
+/* MATLAB's C-API */
#include <mex.h>
-#include <math.h> /* need this for floor() */
-#include <string.h> /* need this for strcmp() */
-#include <stdarg.h> /* need this for SWIG_Error below */
-#include <stdio.h> /* needed for SWIG_Error */
+/* need this for floor() */
+#include <math.h>
+/* need this for strcmp() */
+#include <string.h>
+/* need this for SWIG_Error below */
+#include <stdarg.h>
+/* needed for SWIG_Error */
+#include <stdio.h>
%}
%insert(runtime) "swigrun.swg";