diff --git a/wolfcrypt/src/ecc25519_fe.c b/wolfcrypt/src/ecc25519_fe.c index c0479d779..a5b28cc7d 100644 --- a/wolfcrypt/src/ecc25519_fe.c +++ b/wolfcrypt/src/ecc25519_fe.c @@ -22,6 +22,12 @@ /* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */ +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + #ifdef HAVE_ECC25519 #include diff --git a/wolfssl/wolfcrypt/ecc25519_fe.h b/wolfssl/wolfcrypt/ecc25519_fe.h index 8e7f65cc7..055f310c1 100644 --- a/wolfssl/wolfcrypt/ecc25519_fe.h +++ b/wolfssl/wolfcrypt/ecc25519_fe.h @@ -21,11 +21,13 @@ /* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */ -#ifdef HAVE_ECC25519 #ifndef WOLF_CRYPT_ECC25519_FE_H #define WOLF_CRYPT_ECC25519_FE_H #include + +#ifdef HAVE_ECC25519 + #include typedef int32_t fe[10]; @@ -53,7 +55,7 @@ void fe_sq(fe,fe); void fe_mul121666(fe,fe); void fe_invert(fe,fe); -#endif -#endif /*HAVE_ECC25519*/ +#endif /* HAVE_ECC25519 */ +#endif /* include guard */