]> code.citadel.org Git - citadel.git/blobdiff - citadel/commands.h
- declare *printf format specifiers if gcc detected
[citadel.git] / citadel / commands.h
index 9a70678815c502c6719b9596c90727ce523039fb..209dd06a67463bf5fb5373c17d066405ab66db2f 100644 (file)
@@ -55,7 +55,12 @@ void async_ka_start(void);
 void async_ka_end(void);
 int checkpagin(int lp, int pagin, int height);
 char was_a_key_pressed(void);
+
+#ifdef __GNUC__
+void pprintf(const char *format, ...) __attribute__((__format__(__printf__,1,2)));
+#else
 void pprintf(const char *format, ...);
+#endif