Compatibility fix with MATLAB ≤ R2011a

time-shift
Sébastien Villemot 2019-03-26 15:42:18 +01:00
parent fb4d14c0a2
commit 37d7dc65ae
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 3 additions and 4 deletions

View File

@ -85,9 +85,8 @@ if test "${MATLAB_ARCH}" = "glnxa64" -o "${MATLAB_ARCH}" = "win64" -o "${MATLAB_
fi
# Kludge for incompatibility of older MATLABs (≤ R2011a) with recent gcc
# matrix.h is broken because char16_t is not defined
# Also see <uchar.h>
AX_COMPARE_VERSION([$MATLAB_VERSION], [le], [7.12], [MATLAB_CFLAGS="$MATLAB_CFLAGS -include stdint.h -Dchar16_t=uint_least16_t"])
# Include <uchar.h>, because matrix.h needs char16_t
AX_COMPARE_VERSION([$MATLAB_VERSION], [le], [7.12], [MATLAB_CFLAGS="$MATLAB_CFLAGS -include uchar.h"])
# Converts the MATLAB version number into comparable integers with only major and minor version numbers
# For example, 7.4.2 will become 0704

@ -1 +1 @@
Subproject commit 7d5e8a16c0175d80fe74a2df07247697e460beea
Subproject commit 58adbdeddd11284e9e628350423832a901bbf79d