Skip to content

Commit 5a91bd7

Browse files
committed
Merge bitcoin#400: A couple minor cleanups
ac01378 build: add -DSECP256K1_BUILD to benchmark_internal build flags (Andrew Poelstra) a6c6f99 Remove a bunch of unused stdlib #includes (Andrew Poelstra)
2 parents 65285a6 + ac01378 commit 5a91bd7

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bench_sign_SOURCES = src/bench_sign.c
8484
bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB)
8585
bench_internal_SOURCES = src/bench_internal.c
8686
bench_internal_LDADD = $(SECP_LIBS) $(COMMON_LIB)
87-
bench_internal_CPPFLAGS = $(SECP_INCLUDES)
87+
bench_internal_CPPFLAGS = -DSECP256K1_BUILD $(SECP_INCLUDES)
8888
endif
8989

9090
if USE_TESTS

src/field_10x26_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#ifndef _SECP256K1_FIELD_REPR_IMPL_H_
88
#define _SECP256K1_FIELD_REPR_IMPL_H_
99

10-
#include <stdio.h>
11-
#include <string.h>
1210
#include "util.h"
1311
#include "num.h"
1412
#include "field.h"

src/field_5x52_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "libsecp256k1-config.h"
1212
#endif
1313

14-
#include <string.h>
1514
#include "util.h"
1615
#include "num.h"
1716
#include "field.h"

src/group_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#ifndef _SECP256K1_GROUP_IMPL_H_
88
#define _SECP256K1_GROUP_IMPL_H_
99

10-
#include <string.h>
11-
1210
#include "num.h"
1311
#include "field.h"
1412
#include "group.h"

src/scalar_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#ifndef _SECP256K1_SCALAR_IMPL_H_
88
#define _SECP256K1_SCALAR_IMPL_H_
99

10-
#include <string.h>
11-
1210
#include "group.h"
1311
#include "scalar.h"
1412

0 commit comments

Comments
 (0)