diff extra/NaN/src/xptopen.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 49e9ace39874
children
line wrap: on
line diff
--- a/extra/NaN/src/xptopen.cpp	Tue Dec 22 00:48:47 2015 +0000
+++ b/extra/NaN/src/xptopen.cpp	Tue Dec 22 10:28:53 2015 +0000
@@ -63,6 +63,10 @@
 #include <time.h>
 #include "mex.h"
 
+#ifndef typeof
+#define typeof __typeof__
+#endif
+
 #ifdef tmwtypes_h
   #if (MX_API_VER<=0x07020000)
     typedef int mwSize;