From 98de32dfcb7bc42f58f1da3a420701b883dda3f5 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 22 Jan 2010 09:14:09 +0000 Subject: [PATCH] build_matlab: fix for 64-bit Mac (thanks to Jacob Smith for reporting) git-svn-id: https://www.dynare.org/svn/dynare/trunk@3371 ac1d8469-bf42-47a9-8791-bf33cf982152 --- mex/sources/build_matlab.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mex/sources/build_matlab.m b/mex/sources/build_matlab.m index 8d197528d..2ec0f7123 100644 --- a/mex/sources/build_matlab.m +++ b/mex/sources/build_matlab.m @@ -60,7 +60,8 @@ matver = sscanf(verstruct.Version, '%d.%d.%d')'; COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x' sprintf('%02d%02d', matver(1), matver(2)) ]; % Large array dims for 64 bits platforms appeared in Matlab 7.3 -if (strcmpi('GLNXA64', computer) || strcmpi('PCWIN64', computer)) ... +if (strcmpi('GLNXA64', computer) || strcmpi('PCWIN64', computer) ... + || strcmpi('MACI64', computer)) ... && ~matlab_ver_less_than('7.3') COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -largeArrayDims' ]; end