Rename cairo_printf_format to CAIRO_PRINTF_FORMAT. Fix syntax error in the case of an empty definition. (Thanks to Vladimir Vukicevic).

This commit is contained in:
Carl Worth 2005-08-16 16:41:10 +00:00
parent b7737163bc
commit a2a89e858a
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2005-08-16 Carl Worth <cworth@cworth.org>
* src/cairoint.h (CAIRO_PRINTF_FORMAT): Rename cairo_printf_format
to CAIRO_PRINTF_FORMAT. Fix syntax error in the case of an empty
definition. (Thanks to Vladimir Vukicevic).
2005-08-14 Kristian Høgsberg <krh@redhat.com>
* src/cairo-ft-font.c (_cairo_ft_unscaled_font_lock_face): Zero

View file

@ -87,10 +87,10 @@
#endif
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
#define cairo_printf_format(fmt_index, va_index) \
#define CAIRO_PRINTF_FORMAT(fmt_index, va_index) \
__attribute__((__format__(__printf__, fmt_index, va_index)))
#else
#define cairo_printf_format (fmt_index, va_index)
#define CAIRO_PRINTF_FORMAT(fmt_index, va_index)
#endif
/* slim_internal.h */
@ -1999,8 +1999,7 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream,
cairo_private cairo_status_t
_cairo_output_stream_printf (cairo_output_stream_t *stream,
const char *fmt, ...)
cairo_printf_format(2, 3);
const char *fmt, ...) CAIRO_PRINTF_FORMAT(2, 3);
cairo_private long
_cairo_output_stream_get_position (cairo_output_stream_t *status);