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