@@ -71,7 +71,7 @@ impl IsTerminal for Stderr {
7171 }
7272}
7373
74- #[ cfg( feature = "posix" ) ]
74+ #[ cfg( all ( not ( feature = "std" ) , any ( target_os = "linux" , target_os = "nto" , ) ) ) ]
7575impl Write for Stdout {
7676 fn write_str ( & mut self , s : & str ) -> fmt:: Result {
7777 use iceoryx2_pal_posix:: * ;
@@ -92,14 +92,14 @@ impl Write for Stdout {
9292 }
9393}
9494
95- #[ cfg( feature = "posix" ) ]
95+ #[ cfg( all ( not ( feature = "std" ) , any ( target_os = "linux" , target_os = "nto" , ) ) ) ]
9696impl IsTerminal for Stdout {
9797 fn is_terminal ( & self ) -> bool {
9898 true
9999 }
100100}
101101
102- #[ cfg( feature = "posix" ) ]
102+ #[ cfg( all ( not ( feature = "std" ) , any ( target_os = "linux" , target_os = "nto" , ) ) ) ]
103103impl Write for Stderr {
104104 fn write_str ( & mut self , s : & str ) -> fmt:: Result {
105105 use iceoryx2_pal_posix:: * ;
@@ -120,35 +120,47 @@ impl Write for Stderr {
120120 }
121121}
122122
123- #[ cfg( feature = "posix" ) ]
123+ #[ cfg( all ( not ( feature = "std" ) , any ( target_os = "linux" , target_os = "nto" , ) ) ) ]
124124impl IsTerminal for Stderr {
125125 fn is_terminal ( & self ) -> bool {
126126 true
127127 }
128128}
129129
130- #[ cfg( not( any( feature = "std" , feature = "posix" ) ) ) ]
130+ #[ cfg( all(
131+ not( feature = "std" ) ,
132+ not( any( target_os = "linux" , target_os = "nto" , ) )
133+ ) ) ]
131134impl Write for Stdout {
132135 fn write_str ( & mut self , _s : & str ) -> fmt:: Result {
133136 Ok ( ( ) )
134137 }
135138}
136139
137- #[ cfg( not( any( feature = "std" , feature = "posix" ) ) ) ]
140+ #[ cfg( all(
141+ not( feature = "std" ) ,
142+ not( any( target_os = "linux" , target_os = "nto" , ) )
143+ ) ) ]
138144impl IsTerminal for Stdout {
139145 fn is_terminal ( & self ) -> bool {
140146 false
141147 }
142148}
143149
144- #[ cfg( not( any( feature = "std" , feature = "posix" ) ) ) ]
150+ #[ cfg( all(
151+ not( feature = "std" ) ,
152+ not( any( target_os = "linux" , target_os = "nto" , ) )
153+ ) ) ]
145154impl Write for Stderr {
146155 fn write_str ( & mut self , _s : & str ) -> fmt:: Result {
147156 Ok ( ( ) )
148157 }
149158}
150159
151- #[ cfg( not( any( feature = "std" , feature = "posix" ) ) ) ]
160+ #[ cfg( all(
161+ not( feature = "std" ) ,
162+ not( any( target_os = "linux" , target_os = "nto" , ) )
163+ ) ) ]
152164impl IsTerminal for Stderr {
153165 fn is_terminal ( & self ) -> bool {
154166 false
0 commit comments