Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
[citadel.git] / citadel / snprintf.h
index 1a27cdf138c8977bd18d934d717fb72b0f640e8a..9cabca4e5d36fef11868e10ff3f67ba05bf772bf 100644 (file)
@@ -1,5 +1,11 @@
-/* $Id$ */
 #ifndef __DECC
+
+#ifdef __GNUC__
+int snprintf (char *buf, size_t max, const char *fmt, ...) __attribute__((__format__(__printf__,3,4)));
+int vsnprintf (char *buf, size_t max, const char *fmt, va_list argp) __attribute__((__format__(__printf__,3,0)));
+#else
 int snprintf (char *buf, size_t max, const char *fmt, ...);
 int vsnprintf (char *buf, size_t max, const char *fmt, va_list argp);
 #endif
+
+#endif