diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-24 14:36:07 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-24 14:41:49 +0100 |
commit | 15cb4ec0c0c6b2205e5d3ba0b59c09dd20b4bab5 (patch) | |
tree | 9b1c563c32238f60a6a587a437f3f9e988f9dc8c /src | |
parent | 2e7800cf650197f4b8998ef8ac24d08daa316a2f (diff) |
Build the crypto libs as C99
Some of the crypto libs rely on UINT64_C, which in glibc 2.17 and earlier was
not defined for C++ code (see
https://sourceware.org/bugzilla/show_bug.cgi?id=15366).
Diffstat (limited to 'src')
-rw-r--r-- | src/libs.c (renamed from src/libs.cpp) | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libs.cpp b/src/libs.c index 6757574..4304354 100644 --- a/src/libs.cpp +++ b/src/libs.c @@ -1,4 +1,4 @@ -/* Copyright 2015 OpenMarket Ltd +/* Copyright 2015-6 OpenMarket Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -extern "C" { #include "crypto-algorithms/sha256.c" #include "crypto-algorithms/aes.c" #include "curve25519-donna/curve25519-donna.c" @@ -24,4 +23,3 @@ extern "C" { #include "ed25519/src/verify.c" #include "ed25519/src/sign.c" #include "ed25519_additions.c" -} |