From 7b292b81089fcb23da0e50045ce15fbbd89ee89b Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 13 Mar 2013 23:42:39 +0100 Subject: [PATCH] simple makefile --- field.h | 2 +- num.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/field.h b/field.h index 1aa6d1e9c6..d67c01adcc 100644 --- a/field.h +++ b/field.h @@ -369,7 +369,7 @@ const FieldConstants &GetFieldConst() { } void FieldElem::SetInverse(Context &ctx, FieldElem &a) { -#if 0 +#if defined(USE_FIELDINVERSE_BUILTIN) // calculate a^p, with p={45,63,1019,1023} FieldElem a2; a2.SetSquare(a); FieldElem a3; a3.SetMult(a2,a); diff --git a/num.h b/num.h index 3bb8af360c..ff69b11d2c 100644 --- a/num.h +++ b/num.h @@ -1,7 +1,12 @@ #ifndef _SECP256K1_NUM_ #define _SECP256K1_NUM_ -// #include "num_gmp.h" +#if defined(USE_NUM_GMP) +#include "num_gmp.h" +#elif defined(USE_NUM_OPENSSL) #include "num_openssl.h" +#else +#error "Please select num implementation" +#endif #endif