aboutsummaryrefslogtreecommitdiff
path: root/src/secp256k1/contrib/lax_der_privatekey_parsing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/secp256k1/contrib/lax_der_privatekey_parsing.h')
-rw-r--r--src/secp256k1/contrib/lax_der_privatekey_parsing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/secp256k1/contrib/lax_der_privatekey_parsing.h b/src/secp256k1/contrib/lax_der_privatekey_parsing.h
index 602c7c556a..1a8ad8ae0c 100644
--- a/src/secp256k1/contrib/lax_der_privatekey_parsing.h
+++ b/src/secp256k1/contrib/lax_der_privatekey_parsing.h
@@ -28,7 +28,13 @@
#ifndef SECP256K1_CONTRIB_BER_PRIVATEKEY_H
#define SECP256K1_CONTRIB_BER_PRIVATEKEY_H
+/* #include secp256k1.h only when it hasn't been included yet.
+ This enables this file to be #included directly in other project
+ files (such as tests.c) without the need to set an explicit -I flag,
+ which would be necessary to locate secp256k1.h. */
+#ifndef SECP256K1_H
#include <secp256k1.h>
+#endif
#ifdef __cplusplus
extern "C" {