From 02681122f147a25a7fc851a63088d3c57cc9c60f Mon Sep 17 00:00:00 2001 From: stepan <stepan@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Wed, 8 Apr 2009 13:46:47 +0000 Subject: [PATCH] Added the modification by michel on build_matlab.m (r2565) for mwSignedIndex. git-svn-id: https://www.dynare.org/svn/dynare/trunk@2569 ac1d8469-bf42-47a9-8791-bf33cf982152 --- mex/sources/build_matlab_multithread.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mex/sources/build_matlab_multithread.m b/mex/sources/build_matlab_multithread.m index fb60b3cf68..b0a6e8468c 100644 --- a/mex/sources/build_matlab_multithread.m +++ b/mex/sources/build_matlab_multithread.m @@ -54,6 +54,11 @@ if matlab_ver_less_than('7.3') COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -DMWTYPES_NOT_DEFINED' ]; end +% Matlab Lapack expects mwSignedIndex arguments only starting with Matlab 7.8 +if ~matlab_ver_less_than('7.8') + COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -DLAPACK_USE_MWSIGNEDINDEX' ]; +end + % Large array dims for 64 bits platforms appeared in Matlab 7.3 if (strcmpi('GLNXA64', computer) || strcmpi('PCWIN64', computer)) ... && ~matlab_ver_less_than('7.3') -- GitLab