diff extra/NaN/src/sumskipnan_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 13815b367946
children
line wrap: on
line diff
--- a/extra/NaN/src/sumskipnan_mex.cpp	Tue Dec 22 00:48:47 2015 +0000
+++ b/extra/NaN/src/sumskipnan_mex.cpp	Tue Dec 22 10:28:53 2015 +0000
@@ -58,6 +58,9 @@
 */
 #define ISNAN(a) (a!=a)
 
+#ifndef typeof
+#define typeof __typeof__
+#endif
 
 inline void __sumskipnan2w__(double *data, size_t Ni, double *s, double *No, char *flag_anyISNAN, double *W);
 inline void __sumskipnan3w__(double *data, size_t Ni, double *s, double *s2, double *No, char *flag_anyISNAN, double *W);