summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
commit13ef1266e96335725e4b00cbe84753cfb1d9c52c (patch)
tree1f06fe28c309b2b5e2f24bc4cf440212c717b9cc /include
parent78689bf5bbd1dbe879d50aa0667db4603230390b (diff)
downloadxine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.gz
xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.bz2
Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.
Diffstat (limited to 'include')
-rw-r--r--include/xine.h.in11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/xine.h.in b/include/xine.h.in
index e4210d314..f25038796 100644
--- a/include/xine.h.in
+++ b/include/xine.h.in
@@ -792,17 +792,10 @@ int xine_get_log_section_count(xine_t *self) XINE_PROTECTED;
const char *const *xine_get_log_names(xine_t *self) XINE_PROTECTED;
/* print some log information to <buf> section */
-#ifndef __GNUC__
void xine_log (xine_t *self, int buf,
- const char *format, ...) XINE_PROTECTED;
+ const char *format, ...) XINE_FORMAT_PRINTF(3, 4) XINE_PROTECTED;
void xine_vlog(xine_t *self, int buf,
- const char *format, va_list args) XINE_PROTECTED;
-#else
-void xine_log (xine_t *self, int buf,
- const char *format, ...) __attribute__ ((__format__(printf, 3, 4))) XINE_PROTECTED;
-void xine_vlog(xine_t *self, int buf,
- const char *format, va_list args) __attribute__ ((__format__(printf, 3, 0))) XINE_PROTECTED;
-#endif
+ const char *format, va_list args) XINE_FORMAT_PRINTF(3, 0) XINE_PROTECTED;
/* get log messages of specified section */
char *const *xine_get_log (xine_t *self, int buf) XINE_PROTECTED;