From a06ebe3be337627a7562dba3dc5f452cde9cfd33 Mon Sep 17 00:00:00 2001 From: GGSuchao <1500062807@pku.edu.cn> Date: Sun, 25 Jun 2017 20:25:48 +0800 Subject: [PATCH] Update miracl.h --- include/openssl/miracl.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/openssl/miracl.h b/include/openssl/miracl.h index 3fd638d1..1b8a5b16 100644 --- a/include/openssl/miracl.h +++ b/include/openssl/miracl.h @@ -32,8 +32,8 @@ the CertiVox MIRACL Crypto SDK with a closed source product. * * ***************************************************************************/ -#ifndef MIRACL_H -#define MIRACL_H +#ifndef HEADER_MIRACL_H +#define HEADER_MIRACL_H /* * main MIRACL header - miracl.h. @@ -45,6 +45,10 @@ the CertiVox MIRACL Crypto SDK with a closed source product. * /* Use a smaller buffer if space is limited, don't be so wasteful! */ +#ifdef __cplusplus +extern "C"{ +#endif + #ifdef MR_STATIC #define MR_DEFAULT_BUFFER_SIZE 260 #else @@ -1506,6 +1510,10 @@ functions. But it works! #endif +#ifdef __cplusplus +} +#endif + /*