From 1629c9e88844bca09360fd013b533b11f8a7ac0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carn=C3=AB=20Draug?= Date: Wed, 11 Dec 2013 14:02:09 +0000 Subject: [PATCH] Matlab/Octave: use the standard method of checking OCTAVE_VERSION to distinguish between the two. --- matlab/make.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/make.m b/matlab/make.m index 8022af5e..e5491711 100644 --- a/matlab/make.m +++ b/matlab/make.m @@ -1,9 +1,8 @@ % This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix try - Type = ver; % This part is for OCTAVE - if(strcmp(Type(1).Name, 'Octave') == 1) + if (exist ('OCTAVE_VERSION', 'builtin')) mex libsvmread.c mex libsvmwrite.c mex svmtrain.c ../svm.cpp svm_model_matlab.c