mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
23 lines
1,022 B
Diff
23 lines
1,022 B
Diff
|
diff --git a/src/crypto/internal.h b/src/crypto/internal.h
|
||
|
index a77102d76..30d6826dd 100644
|
||
|
--- a/src/crypto/internal.h
|
||
|
+++ b/src/crypto/internal.h
|
||
|
@@ -1176,7 +1176,7 @@ static inline uint64_t CRYPTO_rotr_u64(uint64_t value, int shift) {
|
||
|
|
||
|
// CRYPTO_addc_* returns |x + y + carry|, and sets |*out_carry| to the carry
|
||
|
// bit. |carry| must be zero or one.
|
||
|
-#if OPENSSL_HAS_BUILTIN(__builtin_addc)
|
||
|
+#if OPENSSL_HAS_BUILTIN(__builtin_addc) && !defined(__cplusplus)
|
||
|
|
||
|
#define CRYPTO_GENERIC_ADDC(x, y, carry, out_carry) \
|
||
|
(_Generic((x), \
|
||
|
@@ -1228,7 +1228,7 @@ static inline uint64_t CRYPTO_addc_u64(uint64_t x, uint64_t y, uint64_t carry,
|
||
|
|
||
|
// CRYPTO_subc_* returns |x - y - borrow|, and sets |*out_borrow| to the borrow
|
||
|
// bit. |borrow| must be zero or one.
|
||
|
-#if OPENSSL_HAS_BUILTIN(__builtin_subc)
|
||
|
+#if OPENSSL_HAS_BUILTIN(__builtin_subc) && !defined(__cplusplus)
|
||
|
|
||
|
#define CRYPTO_GENERIC_SUBC(x, y, borrow, out_borrow) \
|
||
|
(_Generic((x), \
|