Define SECP256K1_BUILD in secp256k1.c directly.

This avoids building without it and makes it safer to use a custom
 building environment.  Test harnesses need to #include secp256k1.c
 first now.
This commit is contained in:
Gregory Maxwell
2021-05-01 17:08:52 +00:00
parent efad3506a8
commit ae9e648526
6 changed files with 28 additions and 11 deletions

View File

@@ -5,8 +5,9 @@
***********************************************************************/
#include <stdio.h>
#include "include/secp256k1.h"
#include "secp256k1.c"
#include "include/secp256k1.h"
#include "util.h"
#include "hash_impl.h"
#include "field_impl.h"
@@ -14,7 +15,6 @@
#include "scalar_impl.h"
#include "ecmult_impl.h"
#include "bench.h"
#include "secp256k1.c"
#define POINTS 32768