Introduce SECP256K1_LOCAL_VAR macro

This change makes the `-fvisibility=hidden` compiler option unnecessary.
This commit is contained in:
Hennadii Stepanov
2025-03-10 11:22:13 +00:00
parent 03bbe8c615
commit 88548058b3
4 changed files with 20 additions and 3 deletions

View File

@@ -13,10 +13,12 @@ extern "C" {
#include "group.h"
#include "ecmult_gen.h"
#include "util_local_visibility.h"
#ifdef EXHAUSTIVE_TEST_ORDER
static secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
#else
extern const secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
SECP256K1_LOCAL_VAR const secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
#endif /* defined(EXHAUSTIVE_TEST_ORDER) */
#ifdef __cplusplus