From 13ef1266e96335725e4b00cbe84753cfb1d9c52c Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sat, 7 Apr 2007 18:34:07 +0100 Subject: Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly. --- lib/os_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/os_internal.h') diff --git a/lib/os_internal.h b/lib/os_internal.h index 8ecfbaeab..dd48e04f7 100644 --- a/lib/os_internal.h +++ b/lib/os_internal.h @@ -120,8 +120,8 @@ void xine_private_unsetenv(const char *name); #define asprintf(STRINGPP, FORMAT, ...) xine_private_asprintf((STRINGPP), FORMAT, __VA_ARGS__) #endif #define vasprintf(STRINGPP, FORMAT, VA_ARG) xine_private_vasprintf((STRINGPP), (FORMAT), (VA_ARG)) -int xine_private_asprintf(char **string, const char *format, ...) __attribute__ ((format (printf, 2, 3))); -int xine_private_vasprintf(char **string, const char *format, va_list ap) __attribute__ ((format (printf, 2, 0))); +int xine_private_asprintf(char **string, const char *format, ...) XINE_FORMAT_PRINTF(2, 3); +int xine_private_vasprintf(char **string, const char *format, va_list ap) XINE_FORMAT_PRINTF(2, 0); #endif /* replacement of strndup */ -- cgit v1.2.3