Index: trunk/psLib/src/db/psDB.h
===================================================================
--- trunk/psLib/src/db/psDB.h	(revision 8336)
+++ trunk/psLib/src/db/psDB.h	(revision 8610)
@@ -10,6 +10,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-15 02:28:13 $
+ *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 00:32:39 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -90,9 +90,18 @@
  * @return bool:    true on success
  */
+#ifdef __GNUC__
 bool p_psDBRunQuery(
     psDB *dbh,                         ///< Database handle
     const char *format,                ///< SQL string to execute
     ...                                ///< Arguments for name formatting and metadata item data.
-);
+) __attribute__((format(printf, 2, 3)));
+
+#else // __GNUC__
+bool p_psDBRunQuery(
+    psDB *dbh,                         ///< Database handle
+    const char *format,                ///< SQL string to execute
+    ...                                ///< Arguments for name formatting and metadata item data.
+);
+#endif // __GNUC__
 
 /** Executes a SQL query as a prepared statement
@@ -104,4 +113,5 @@
  * @return long:    the number of database rows affected
  */
+#ifdef __GNUC__
 long p_psDBRunQueryPrepared(
     psDB *dbh,                          ///< Database handle
@@ -109,5 +119,13 @@
     const char *format,                 ///< SQL string to execute
     ...
-);
+) __attribute__((format(printf, 3, 4)));
+#else // __GNUC__
+long p_psDBRunQueryPrepared(
+    psDB *dbh,                          ///< Database handle
+    const psArray *rowSet,              ///< row data as psArray of psMetadata
+    const char *format,                 ///< SQL string to execute
+    ...
+);
+#endif // __GNUC__
 
 /** Fetches the result of a SQL query
