@@ -1496,22 +1496,22 @@ extern "C" {
14961496 #[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
14971497 pub fn cairo_win32_surface_get_image ( surface : * mut cairo_surface_t ) -> * mut cairo_surface_t ;
14981498
1499- #[ cfg( target_os = "macos" ) ]
1500- #[ cfg_attr( docsrs, doc( cfg( target_os = "macos" ) ) ) ]
1499+ #[ cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ]
1500+ #[ cfg_attr( docsrs, doc( cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ) ) ]
15011501 pub fn cairo_quartz_surface_create (
15021502 format : cairo_format_t ,
15031503 width : c_uint ,
15041504 height : c_uint ,
15051505 ) -> * mut cairo_surface_t ;
1506- #[ cfg( target_os = "macos" ) ]
1507- #[ cfg_attr( docsrs, doc( cfg( target_os = "macos" ) ) ) ]
1506+ #[ cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ]
1507+ #[ cfg_attr( docsrs, doc( cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ) ) ]
15081508 pub fn cairo_quartz_surface_create_for_cg_context (
15091509 cg_context : CGContextRef ,
15101510 width : c_uint ,
15111511 height : c_uint ,
15121512 ) -> * mut cairo_surface_t ;
1513- #[ cfg( target_os = "macos" ) ]
1514- #[ cfg_attr( docsrs, doc( cfg( target_os = "macos" ) ) ) ]
1513+ #[ cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ]
1514+ #[ cfg_attr( docsrs, doc( cfg( all ( target_os = "macos" , feature = "quartz-surface" ) ) ) ) ]
15151515 pub fn cairo_quartz_surface_get_cg_context ( surface : * mut cairo_surface_t ) -> CGContextRef ;
15161516
15171517 // CAIRO SCRIPT
0 commit comments