Mercurial > gftp.yaz
diff lib/gftp.h @ 338:0f34108f27b7
2003-12-10 Brian Masney <masneyb@gftp.org>
* lib/gftp.h src/text/gftp-text.h src/gtk/gftp-gtk.h - added
GFTP_LOG_FUNCTION_ATTRIBUTES that is only defined when compiled
against gcc. When this is set, it will specify the function is
printf() type function so that extra checks can be done by the
compiler. This is to fix problems with older Sun compilers.
author | masneyb |
---|---|
date | Sat, 13 Dec 2003 20:52:14 +0000 |
parents | 532eb171d5c2 |
children | eedc2c5727fa |
line wrap: on
line diff
--- a/lib/gftp.h Sat Dec 13 20:36:39 2003 +0000 +++ b/lib/gftp.h Sat Dec 13 20:52:14 2003 +0000 @@ -133,6 +133,12 @@ #endif +#ifdef __GNUC__ +# define GFTP_LOG_FUNCTION_ATTRIBUTES __attribute__((format(printf, 3, 4))) +#else +# define GFTP_LOG_FUNCTION_ATTRIBUTES +#endif + /* Server types (used by FTP protocol from SYST command) */ #define GFTP_DIRTYPE_UNIX 1 #define GFTP_DIRTYPE_EPLF 2