diff options
author | rhe <rhe@ruby-lang.org> | 2016-05-25 08:46:40 +0000 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-31 11:31:27 +0900 |
commit | e34610d8d5e49301157afe435803b185774f39a2 (patch) | |
tree | 2f7e292d4ab837d88b52224842b7416f908f5457 /ext | |
parent | 90038a0dd090459099addabd885a275dcc848855 (diff) | |
download | ruby-openssl-e34610d8d5e49301157afe435803b185774f39a2.tar.gz |
openssl: remove unnecessary 'extern "C"' blocks from local headers
* ext/openssl/openssl_missing.h, ext/openssl/ossl.h: Remove
unnecessary 'extern "C"' blocks. We don't use C++ and these headers
are local to ext/openssl, so there is no need to enclose with it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/openssl_missing.h | 9 | ||||
-rw-r--r-- | ext/openssl/ossl.h | 8 |
2 files changed, 0 insertions, 17 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index 955579cf..b5bfd31e 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -10,10 +10,6 @@ #if !defined(_OSSL_OPENSSL_MISSING_H_) #define _OSSL_OPENSSL_MISSING_H_ -#if defined(__cplusplus) -extern "C" { -#endif - #ifndef TYPEDEF_D2I_OF typedef char *d2i_of_void(); #endif @@ -193,9 +189,4 @@ int PEM_def_callback(char *buf, int num, int w, void *key); int ASN1_put_eoc(unsigned char **pp); #endif -#if defined(__cplusplus) -} -#endif - - #endif /* _OSSL_OPENSSL_MISSING_H_ */ diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 8da2ab47..4a538e9b 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -12,10 +12,6 @@ #include RUBY_EXTCONF_H -#if defined(__cplusplus) -extern "C" { -#endif - #if 0 mOSSL = rb_define_module("OpenSSL"); mX509 = rb_define_module_under(mOSSL, "X509"); @@ -247,8 +243,4 @@ void ossl_debug(const char *, ...); void Init_openssl(void); -#if defined(__cplusplus) -} -#endif - #endif /* _OSSL_H_ */ |