summaryrefslogtreecommitdiffstats
path: root/crypto/ebcdic.h
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2014-08-27 21:43:25 -0400
committerRich Salz <rsalz@akamai.com>2014-08-27 21:45:09 -0400
commit089f10e69ece75ce31540501fe0898b15e898552 (patch)
tree7a3d6b91f2de16844feb98f99cd7577a0506326d /crypto/ebcdic.h
parent7f7c05ca638c3cc6d261961fae439cd91e3c1d27 (diff)
RT2308: Add extern "C" { ... } wrapper
Add the wrapper to all public header files (Configure generates one). Don't bother for those that are just lists of #define's that do renaming. Reviewed-by: Tim Hudson <tjh@openssl.org> Cherry-pick of commit 17e80c6bd05de7406a65116f34ed59665607d8d5
Diffstat (limited to 'crypto/ebcdic.h')
-rw-r--r--crypto/ebcdic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/ebcdic.h b/crypto/ebcdic.h
index 6d65afcf9e..85f3cf7f66 100644
--- a/crypto/ebcdic.h
+++ b/crypto/ebcdic.h
@@ -5,6 +5,10 @@
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Avoid name clashes with other applications */
#define os_toascii _openssl_os_toascii
#define os_toebcdic _openssl_os_toebcdic
@@ -16,4 +20,7 @@ extern const unsigned char os_toebcdic[256];
void *ebcdic2ascii(void *dest, const void *srce, size_t count);
void *ascii2ebcdic(void *dest, const void *srce, size_t count);
+#ifdef __cplusplus
+}
+#endif
#endif