Index: trunk/Mars/mcore/zofits.h
===================================================================
--- trunk/Mars/mcore/zofits.h	(revision 17765)
+++ trunk/Mars/mcore/zofits.h	(revision 17766)
@@ -16,4 +16,11 @@
 #ifdef HAVE_BOOST_THREAD
 #include <boost/thread.hpp>
+#endif
+
+#if defined(__CINT__) || !defined(__EXCEPTIONS)
+namespace std
+{
+    typedef void* exception_ptr;
+};
 #endif
 
@@ -991,7 +998,5 @@
         std::vector<char>             fRawSumBuffer;    ///< buffer used for checksuming the incoming data, before compression
 
-#ifdef __EXCEPTIONS
         std::exception_ptr fThreadsException; ///< exception pointer to store exceptions coming from the threads
-#endif
         int                fErrno;            ///< propagate errno to main thread
 };
