From e84d5227b056c240200d6428c41aa7d81bf11c53 Mon Sep 17 00:00:00 2001 From: Alexey Stratulat <alexey.stratulat@demlabs.net> Date: Tue, 23 Jul 2019 17:49:31 +0700 Subject: [PATCH] [*] Added conditions for compiling compiler with ++ code as with --- include/wrapping_base58.h | 8 +++++++- include/wrapping_base64.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/wrapping_base58.h b/include/wrapping_base58.h index 6998b2dd..2eb623d0 100644 --- a/include/wrapping_base58.h +++ b/include/wrapping_base58.h @@ -2,8 +2,14 @@ #include "dap_enc_base58.h" #include "dap_common.h" +#ifdef __cplusplus +extern "C" { +#endif + PyObject *dap_encode_base58_py(PyObject *self, PyObject *args); PyObject *dap_decode_base58_py(PyObject *self, PyObject *args); -void* getData(PyObject* obj); \ No newline at end of file +#ifdef __cplusplus +} +#endif diff --git a/include/wrapping_base64.h b/include/wrapping_base64.h index 0a960549..3e3dd858 100644 --- a/include/wrapping_base64.h +++ b/include/wrapping_base64.h @@ -12,4 +12,4 @@ PyObject *dap_decode_base64_py(PyObject *self, PyObject *args); #ifdef __cplusplus } -#endif \ No newline at end of file +#endif -- GitLab