File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ impl super::BuildConfig {
117
117
}
118
118
119
119
let bindings = bindgen:: builder ( )
120
+ . enable_function_attribute_detection ( )
120
121
. clang_args ( cc. get_compiler ( ) . args ( ) . iter ( ) . map ( |arg| arg. to_str ( ) . unwrap ( ) ) )
121
122
. header_contents ( "bindgen-input.h" , & input)
122
123
. allowlist_function ( "^(?i)mbedtls_.*" )
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ const DEFAULT_DEFINES: &'static [CDefine] = &[
146
146
( "MBEDTLS_AES_ROM_TABLES" , Undefined ) ,
147
147
( "MBEDTLS_AES_FEWER_TABLES" , Undefined ) ,
148
148
( "MBEDTLS_CAMELLIA_SMALL_MEMORY" , Undefined ) ,
149
- ( "MBEDTLS_CHECK_RETURN_WARNING" , Undefined ) ,
149
+ ( "MBEDTLS_CHECK_RETURN_WARNING" , Defined ) ,
150
150
( "MBEDTLS_CIPHER_MODE_CBC" , Defined ) ,
151
151
( "MBEDTLS_CIPHER_MODE_CFB" , Defined ) ,
152
152
( "MBEDTLS_CIPHER_MODE_CTR" , Defined ) ,
You can’t perform that action at this time.
0 commit comments