From 456af75b78ee7a20d4e5c02b623f110075cdda04 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 21 Aug 2023 16:10:26 +0200 Subject: [PATCH] lets see if this makes osx happy by guarding the cpp code with defines --- tools/cryptorf/sma.cpp | 8 ++++++++ tools/cryptorf/sma_multi.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/tools/cryptorf/sma.cpp b/tools/cryptorf/sma.cpp index c1c9b54e3..3fb1da343 100644 --- a/tools/cryptorf/sma.cpp +++ b/tools/cryptorf/sma.cpp @@ -32,6 +32,10 @@ #include "cryptolib.h" #include "util.h" +#ifdef __cplusplus +extern "C" { +#endif + using namespace std; #ifdef _MSC_VER @@ -852,3 +856,7 @@ int main(int argc, const char *argv[]) { } return 0; } + +#if defined(__cplusplus) +} +#endif \ No newline at end of file diff --git a/tools/cryptorf/sma_multi.cpp b/tools/cryptorf/sma_multi.cpp index cacaa31d1..91cf97d7c 100644 --- a/tools/cryptorf/sma_multi.cpp +++ b/tools/cryptorf/sma_multi.cpp @@ -35,6 +35,10 @@ #include "cryptolib.h" #include "util.h" +#ifdef __cplusplus +extern "C" { +#endif + using namespace std; #ifdef _MSC_VER @@ -1136,3 +1140,7 @@ int main(int argc, const char *argv[]) { } return 0; } + +#if defined(__cplusplus) +} +#endif \ No newline at end of file