Index: trunk/psLib/src/sys/psError.h
===================================================================
--- trunk/psLib/src/sys/psError.h	(revision 11694)
+++ trunk/psLib/src/sys/psError.h	(revision 14452)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt, University of Hawaii
  *
- *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-02-08 01:59:28 $
+ *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-08-09 01:40:07 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -28,4 +28,5 @@
 #include<stdarg.h>
 
+#include "psType.h"
 #include "psErrorCodes.h"
 
@@ -101,10 +102,5 @@
     const char* format,                ///< printf-style format of header line
     ...                                ///< any parameters required in format
-#ifdef __GNUC__
-) __attribute__((format(printf, 2, 3)));
-#else // ifdef __GNUC__
-);
-#endif // ifdef __GNUC__
-
+) PS_ATTR_FORMAT(printf, 2, 3);
 
 #ifndef SWIG
@@ -151,9 +147,5 @@
     const char* format,                ///< printf-style format of header line
     ...                                ///< any parameters required in format
-#ifdef __GNUC__
-) __attribute__((format(printf, 6, 7)));
-#else // ifdef __GNUC__
-);
-#endif // ifdef __GNUC__
+) PS_ATTR_FORMAT(printf, 6, 7);
 #ifndef SWIG
 #define psError(code,new,...) \
@@ -182,9 +174,5 @@
     const char* format,                ///< printf-style format of header line
     ...                                ///< any parameters required in format
-#ifdef __GNUC__
-) __attribute__((format(printf, 4, 5)));
-#else // ifdef __GNUC__
-);
-#endif // ifdef __GNUC__
+) PS_ATTR_FORMAT(printf, 4, 5);
 #ifndef SWIG
 #define psWarning(...) \
@@ -204,5 +192,5 @@
     psErrorCode code,                  ///< Error class code
     const char* msg                    ///< Error message
-);
+) PS_ATTR_MALLOC;
 
 /// @}
