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 + /*