Switch num/field to extern C; small fixes

This commit is contained in:
Pieter Wuille
2013-03-31 03:46:01 +02:00
parent f6ec29d956
commit fba1d58d57
8 changed files with 41 additions and 13 deletions

View File

@@ -5,6 +5,8 @@
#include "num.h"
extern "C" {
typedef struct {
int initialized;
gmp_randstate_t rng;
@@ -146,3 +148,5 @@ void static secp256k1_num_negate(secp256k1_num_t *r) {
void static secp256k1_num_set_rand(secp256k1_num_t *r, const secp256k1_num_t *a) {
mpz_urandomm(r->bn, secp256k1_num_state.rng, a->bn);
}
}