@@ -7,10 +7,22 @@ use crate::{
77
88// static linking is not currently supported here for windows
99#[ cfg_attr( windows, link( name = "odbc32" ) ) ]
10- #[ cfg_attr( all( not( windows) , not( feature = "static" ) , not( feature = "iodbc" ) ) , link( name = "odbc" ) ) ]
11- #[ cfg_attr( all( not( windows) , feature = "static" , not( feature = "iodbc" ) ) , link( name = "odbc" , kind = "static" ) ) ]
12- #[ cfg_attr( all( not( windows) , not( feature = "static" ) , feature = "iodbc" ) , link( name = "iodbc" ) ) ]
13- #[ cfg_attr( all( not( windows) , feature = "static" , feature = "iodbc" ) , link( name = "iodbc" , kind = "static" ) ) ]
10+ #[ cfg_attr(
11+ all( not( windows) , not( feature = "static" ) , not( feature = "iodbc" ) ) ,
12+ link( name = "odbc" )
13+ ) ]
14+ #[ cfg_attr(
15+ all( not( windows) , feature = "static" , not( feature = "iodbc" ) ) ,
16+ link( name = "odbc" , kind = "static" )
17+ ) ]
18+ #[ cfg_attr(
19+ all( not( windows) , not( feature = "static" ) , feature = "iodbc" ) ,
20+ link( name = "iodbc" )
21+ ) ]
22+ #[ cfg_attr(
23+ all( not( windows) , feature = "static" , feature = "iodbc" ) ,
24+ link( name = "iodbc" , kind = "static" )
25+ ) ]
1426extern "system" {
1527 /// Allocates an environment, connection, statement, or descriptor handle.
1628 ///
0 commit comments