diff options
-rw-r--r-- | src/crypto/impl/mbedtls.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/crypto/impl/mbedtls.c b/src/crypto/impl/mbedtls.c index 057e7b4..df5201f 100644 --- a/src/crypto/impl/mbedtls.c +++ b/src/crypto/impl/mbedtls.c @@ -31,20 +31,22 @@ /* Inline errors on linux in header files on linux */ #ifndef inline #define inline __inline -#endif - -#include <mbedtls/md.h> -#include <mbedtls/hkdf.h> -#include <mbedtls/hmac_drbg.h> -#include <mbedtls/sha256.h> -#include <mbedtls/chacha20.h> -#include <mbedtls/constant_time.h> - -#ifndef inline + #include <mbedtls/md.h> + #include <mbedtls/hkdf.h> + #include <mbedtls/hmac_drbg.h> + #include <mbedtls/sha256.h> + #include <mbedtls/chacha20.h> + #include <mbedtls/constant_time.h> #undef inline +#else + #include <mbedtls/md.h> + #include <mbedtls/hkdf.h> + #include <mbedtls/hmac_drbg.h> + #include <mbedtls/sha256.h> + #include <mbedtls/chacha20.h> + #include <mbedtls/constant_time.h> #endif - _IMPLSTB const mbedtls_md_info_t* _mbed_sha256_alg(void) { const mbedtls_md_info_t* info; |