fix github issue #24, settings first before ifdef checks on 25519_fe files

This commit is contained in:
toddouska
2015-03-04 12:15:23 -08:00
parent 18e710ce9a
commit 11e15188bf
2 changed files with 11 additions and 3 deletions

View File

@ -22,6 +22,12 @@
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>
#ifdef HAVE_ECC25519
#include <wolfssl/wolfcrypt/ecc25519_fe.h>

View File

@ -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 <wolfssl/wolfcrypt/settings.h>
#ifdef HAVE_ECC25519
#include <stdint.h>
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 */