mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-28 13:00:25 +01:00
xlib-xcb: Use slim_hidden_proto correctly
There are debug functions for setting the precision on a xlib device, so xlib-xcb must redirect that to the xcb backend, too. However this means that these public functions now are also called internally, thus we have to make them go through the slim_hidden_* macros. This commit fixes the following error from "make check": Checking .libs/libcairo.so for local PLT entries 00000000002bb6d8 000001e300000007 R_X86_64_JUMP_SLOT 000000000006d8a0 cairo_xcb_device_debug_set_precision + 0 00000000002bb750 0000025e00000007 R_X86_64_JUMP_SLOT 000000000006d8b0 cairo_xcb_device_debug_get_precision + 0 FAIL: check-plt.sh Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ea645913ba
commit
4495e08e9e
2 changed files with 8 additions and 0 deletions
|
|
@ -910,6 +910,9 @@ cairo_xcb_device_debug_set_precision (cairo_device_t *device,
|
|||
|
||||
((cairo_xcb_connection_t *) device)->force_precision = precision;
|
||||
}
|
||||
#if CAIRO_HAS_XLIB_XCB_FUNCTIONS
|
||||
slim_hidden_def (cairo_xcb_device_debug_set_precision);
|
||||
#endif
|
||||
|
||||
int
|
||||
cairo_xcb_device_debug_get_precision (cairo_device_t *device)
|
||||
|
|
@ -919,3 +922,6 @@ cairo_xcb_device_debug_get_precision (cairo_device_t *device)
|
|||
|
||||
return ((cairo_xcb_connection_t *) device)->force_precision;
|
||||
}
|
||||
#if CAIRO_HAS_XLIB_XCB_FUNCTIONS
|
||||
slim_hidden_def (cairo_xcb_device_debug_get_precision);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -760,6 +760,8 @@ slim_hidden_proto (cairo_xcb_surface_create);
|
|||
slim_hidden_proto (cairo_xcb_surface_create_for_bitmap);
|
||||
slim_hidden_proto (cairo_xcb_surface_create_with_xrender_format);
|
||||
slim_hidden_proto (cairo_xcb_surface_set_size);
|
||||
slim_hidden_proto (cairo_xcb_device_debug_get_precision);
|
||||
slim_hidden_proto_no_warn (cairo_xcb_device_debug_set_precision);
|
||||
#endif
|
||||
|
||||
#endif /* CAIRO_XCB_PRIVATE_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue