diff 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
line wrap: on
line diff
--- a/extra/NaN/src/covm_mex.cpp	Tue Dec 22 00:48:47 2015 +0000
+++ b/extra/NaN/src/covm_mex.cpp	Tue Dec 22 10:28:53 2015 +0000
@@ -54,6 +54,10 @@
  */
 #define ISNAN(a) (a!=a)
 
+#ifndef typeof
+#define typeof __typeof__
+#endif
+
 void mexFunction(int POutputCount,  mxArray* POutput[], int PInputCount, const mxArray *PInputs[]) 
 {
     	double 		*X0=NULL, *Y0=NULL, *W=NULL;