Index: /branches/jch-memory/psLib/src/sys/psMemory.h
===================================================================
--- /branches/jch-memory/psLib/src/sys/psMemory.h	(revision 10940)
+++ /branches/jch-memory/psLib/src/sys/psMemory.h	(revision 10941)
@@ -14,6 +14,6 @@
  *  @ingroup MemoryManagement
  *
- *  @version $Revision: 1.61.2.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-01-05 21:26:52 $
+ *  @version $Revision: 1.61.2.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-01-05 22:16:48 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -139,4 +139,6 @@
 
 #else // #ifdef DOXYGEN
+
+#ifdef __GNUC__
 psPtr p_psAlloc(
     size_t size,                       ///< Size required
@@ -144,5 +146,13 @@
     unsigned int lineno,               ///< Line number of caller
     const char *func                   ///< Function name of caller
-);
+) __attribute__((malloc));
+# else // __GNUC__
+    psPtr p_psAlloc(
+        size_t size,                       ///< Size required
+        const char *file,                  ///< File of caller
+        unsigned int lineno,               ///< Line number of caller
+        const char *func                   ///< Function name of caller
+    );
+#endif // __GNUC__
 
 /// Memory allocation. psAlloc sends file and line number to p_psAlloc.
@@ -338,4 +348,5 @@
 #else // #ifdef DOXYGEN
 
+#ifdef __GNUC__
 psPtr p_psRealloc(
     psPtr ptr,                         ///< Pointer to re-allocate
@@ -344,5 +355,14 @@
     unsigned int lineno,               ///< Line number of caller
     const char *func                   ///< Function name of caller
-);
+) __attribute__((malloc));
+# else // __GNUC__
+    psPtr p_psRealloc(
+        psPtr ptr,                         ///< Pointer to re-allocate
+        size_t size,                       ///< Size required
+        const char *file,                  ///< File of caller
+        unsigned int lineno,               ///< Line number of caller
+        const char *func                   ///< Function name of caller
+    );
+#endif // __GNUC__
 
 /// Memory re-allocation.  psRealloc sends file and line number to p_psRealloc.
