aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prov')
-rw-r--r--src/lib/prov/bearssl/bearssl_ec.cpp6
-rw-r--r--src/lib/prov/bearssl/bearssl_hash.cpp5
2 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/prov/bearssl/bearssl_ec.cpp b/src/lib/prov/bearssl/bearssl_ec.cpp
index 507345f24..c62d78437 100644
--- a/src/lib/prov/bearssl/bearssl_ec.cpp
+++ b/src/lib/prov/bearssl/bearssl_ec.cpp
@@ -20,8 +20,10 @@
#include <botan/ecdsa.h>
#endif
-#include <bearssl_hash.h>
-#include <bearssl_ec.h>
+extern "C" {
+ #include <bearssl_hash.h>
+ #include <bearssl_ec.h>
+}
namespace Botan {
diff --git a/src/lib/prov/bearssl/bearssl_hash.cpp b/src/lib/prov/bearssl/bearssl_hash.cpp
index 74b6a9ae7..af63e05c3 100644
--- a/src/lib/prov/bearssl/bearssl_hash.cpp
+++ b/src/lib/prov/bearssl/bearssl_hash.cpp
@@ -7,9 +7,12 @@
#include <botan/hash.h>
#include <botan/internal/bearssl.h>
-#include <bearssl_hash.h>
#include <unordered_map>
+extern "C" {
+ #include <bearssl_hash.h>
+}
+
namespace Botan {
namespace {