Skip to content

Commit

Permalink
Matlab/Octave: use the standard method of checking OCTAVE_VERSION to …
Browse files Browse the repository at this point in the history
…distinguish between the two.
  • Loading branch information
carandraug committed Apr 16, 2015
1 parent 8f3d96e commit 9e41e9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matlab/make.m
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9e41e9b

Please sign in to comment.