Point to mex/octave32 if OCtave 32bit is used on Windows platform.

time-shift
Stéphane Adjemian (Charybdis) 2017-04-26 15:08:34 +02:00
parent 089156a045
commit 650a3f6da2
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
function mexpath = add_path_to_mex_files(dynareroot, modifypath)
% Copyright (C) 2015-2016 Dynare Team
% Copyright (C) 2015-2017 Dynare Team
%
% This file is part of Dynare.
%
@ -22,7 +22,11 @@ if nargin<2
end
if exist('OCTAVE_VERSION')
mexpath = {[dynareroot '../mex/octave/']};
if ispc() && strcmpi(computer(), 'i686-w64-mingw32')
mexpath = {[dynareroot '../mex/octave32/']};
else
mexpath = {[dynareroot '../mex/octave/']};
end
if modifypath
addpath(mexpath{1});
end