@@ -601,6 +601,8 @@ impl From<DeviceToolType> for glib::Value {
601
601
602
602
#[ cfg( feature = "v4_14" ) ]
603
603
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
604
+ #[ cfg( target_os = "linux" ) ]
605
+ #[ cfg_attr( docsrs, doc( cfg( target_os = "linux" ) ) ) ]
604
606
#[ derive( Debug , Eq , PartialEq , Ord , PartialOrd , Hash , Clone , Copy ) ]
605
607
#[ non_exhaustive]
606
608
#[ doc( alias = "GdkDmabufError" ) ]
@@ -617,6 +619,7 @@ pub enum DmabufError {
617
619
618
620
#[ cfg( feature = "v4_14" ) ]
619
621
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
622
+ #[ cfg( target_os = "linux" ) ]
620
623
#[ doc( hidden) ]
621
624
impl IntoGlib for DmabufError {
622
625
type GlibType = ffi:: GdkDmabufError ;
@@ -634,6 +637,7 @@ impl IntoGlib for DmabufError {
634
637
635
638
#[ cfg( feature = "v4_14" ) ]
636
639
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
640
+ #[ cfg( target_os = "linux" ) ]
637
641
#[ doc( hidden) ]
638
642
impl FromGlib < ffi:: GdkDmabufError > for DmabufError {
639
643
#[ inline]
@@ -651,6 +655,7 @@ impl FromGlib<ffi::GdkDmabufError> for DmabufError {
651
655
652
656
#[ cfg( feature = "v4_14" ) ]
653
657
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
658
+ #[ cfg( target_os = "linux" ) ]
654
659
impl glib:: error:: ErrorDomain for DmabufError {
655
660
#[ inline]
656
661
fn domain ( ) -> glib:: Quark {
@@ -676,6 +681,7 @@ impl glib::error::ErrorDomain for DmabufError {
676
681
677
682
#[ cfg( feature = "v4_14" ) ]
678
683
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
684
+ #[ cfg( target_os = "linux" ) ]
679
685
impl StaticType for DmabufError {
680
686
#[ inline]
681
687
#[ doc( alias = "gdk_dmabuf_error_get_type" ) ]
@@ -686,6 +692,7 @@ impl StaticType for DmabufError {
686
692
687
693
#[ cfg( feature = "v4_14" ) ]
688
694
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
695
+ #[ cfg( target_os = "linux" ) ]
689
696
impl glib:: HasParamSpec for DmabufError {
690
697
type ParamSpec = glib:: ParamSpecEnum ;
691
698
type SetValue = Self ;
@@ -698,12 +705,14 @@ impl glib::HasParamSpec for DmabufError {
698
705
699
706
#[ cfg( feature = "v4_14" ) ]
700
707
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
708
+ #[ cfg( target_os = "linux" ) ]
701
709
impl glib:: value:: ValueType for DmabufError {
702
710
type Type = Self ;
703
711
}
704
712
705
713
#[ cfg( feature = "v4_14" ) ]
706
714
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
715
+ #[ cfg( target_os = "linux" ) ]
707
716
unsafe impl < ' a > glib:: value:: FromValue < ' a > for DmabufError {
708
717
type Checker = glib:: value:: GenericValueTypeChecker < Self > ;
709
718
@@ -716,6 +725,7 @@ unsafe impl<'a> glib::value::FromValue<'a> for DmabufError {
716
725
717
726
#[ cfg( feature = "v4_14" ) ]
718
727
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
728
+ #[ cfg( target_os = "linux" ) ]
719
729
impl ToValue for DmabufError {
720
730
#[ inline]
721
731
fn to_value ( & self ) -> glib:: Value {
@@ -734,6 +744,7 @@ impl ToValue for DmabufError {
734
744
735
745
#[ cfg( feature = "v4_14" ) ]
736
746
#[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
747
+ #[ cfg( target_os = "linux" ) ]
737
748
impl From < DmabufError > for glib:: Value {
738
749
#[ inline]
739
750
fn from ( v : DmabufError ) -> Self {
0 commit comments