diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/ttyio.h | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 4edc52167..8d0b95844 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-05-25 Werner Koch <[email protected]> + + * ttyio.h (tty_printf): Add printf attribute. + 2001-04-23 Werner Koch <[email protected]> * http.h: New flag HTTP_FLAG_NO_SHUTDOWN. diff --git a/include/ttyio.h b/include/ttyio.h index 7341b323b..3202a47d8 100644 --- a/include/ttyio.h +++ b/include/ttyio.h @@ -21,7 +21,11 @@ #define G10_TTYIO_H int tty_batchmode( int onoff ); -void tty_printf( const char *fmt, ... ); +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 ) + void tty_printf (const char *fmt, ... ) __attribute__ ((format (printf,1,2))); +#else + void tty_printf const char *fmt, ... ); +#endif void tty_print_string( byte *p, size_t n ); void tty_print_utf8_string( byte *p, size_t n ); void tty_print_utf8_string2( byte *p, size_t n, size_t max_n ); |