comparison extra/NaN/src/covm_mex.cpp @ 12702:29b7963bf748 octave-forge

define typeof() when missing; support for clang compiler added
author schloegl
date Tue, 22 Dec 2015 10:28:53 +0000
parents 79e7259c6ff1
children
comparison
equal deleted inserted replaced
12701:794b03395bbd 12702:29b7963bf748
51 /* 51 /*
52 math.h has isnan() defined for all sizes of floating point numbers, 52 math.h has isnan() defined for all sizes of floating point numbers,
53 but c++ assumes isnan(double), causing possible conversions for float and long double 53 but c++ assumes isnan(double), causing possible conversions for float and long double
54 */ 54 */
55 #define ISNAN(a) (a!=a) 55 #define ISNAN(a) (a!=a)
56
57 #ifndef typeof
58 #define typeof __typeof__
59 #endif
56 60
57 void mexFunction(int POutputCount, mxArray* POutput[], int PInputCount, const mxArray *PInputs[]) 61 void mexFunction(int POutputCount, mxArray* POutput[], int PInputCount, const mxArray *PInputs[])
58 { 62 {
59 double *X0=NULL, *Y0=NULL, *W=NULL; 63 double *X0=NULL, *Y0=NULL, *W=NULL;
60 double *CC; 64 double *CC;