I have written some years ago a C shared library to use with Matlab.
I was using the MX_API_VER preprocessor macro to detect MEX API version,
#include "mex.h"#include "matrix.h"#if (! defined MX_API_VER) || (MX_API_VER < 0x07030000)/* * Compatibiliy with older version of MATLAB */typedef int mwSize;typedef int mwIndex;#endif
Unfortunately, it seems that the MX_API_VER has disappeared from matrix.h in Matlab 2016a.
Is there another way to detect MAX API version ?
Regards.
Best Answer