Index: /issm/trunk-jpl/src/c/include/macros.h
===================================================================
--- /issm/trunk-jpl/src/c/include/macros.h	(revision 12505)
+++ /issm/trunk-jpl/src/c/include/macros.h	(revision 12506)
@@ -9,4 +9,5 @@
 #include <iostream>
 #include <sstream>
+#include <iomanip>
 #include "./typedefs.h"
 
@@ -20,5 +21,5 @@
 /* _printf_ {{{*/
 /*Printing macro: only cpu number 0 */
-#define _printf_(flag,...) do { if(flag) PrintfFunction(__VA_ARGS__); }while (0)
+#define _printf_(flag,...) do{if(flag) PrintfFunction(__VA_ARGS__);}while(0)
 /*}}}*/
 /* _error_ {{{*/
@@ -36,12 +37,12 @@
 #ifdef _INTEL_WIN_
 #define _error2_(StreamArgs)\
-   {std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \
+   do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \
    aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \
-   throw ErrorException(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}
+   throw ErrorException(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0)
 #else
 #define _error2_(StreamArgs)\
-	{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \
+	do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \
    aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \
-   throw ErrorException(__FILE__,__func__,__LINE__,aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}
+   throw ErrorException(__FILE__,__func__,__LINE__,aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0)
 #endif
 /*}}}*/
@@ -54,5 +55,5 @@
 /* macro to print some string, adds std::ends */
 #define _printString_(StreamArgs)\
-   {std::cout << StreamArgs << std::ends;}
+   {std::cout << StreamArgs;}
 /*}}}*/
 /* _assert_ {{{*/
