diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 16:56:44 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 16:56:44 +0900 |
commit | 0869da58a9bd4e037b1eac16d5041755bd9d75a3 (patch) | |
tree | 9151d4560a6288af2757f3598599d51a9107f938 | |
parent | a81684eb55bec7b255697e97f1ac9bf42bbc326b (diff) | |
download | ruby-0869da58a9bd4e037b1eac16d5041755bd9d75a3.tar.gz |
ext/openssl: remove 'extern "C" { }' blocks
They have existed since ext/openssl was imported to Ruby, but since
openssl_missing.h and ossl.h are not library code, they aren't required.
-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 bf5be463cf..8eec424efc 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 @@ -201,9 +197,4 @@ int ASN1_put_eoc(unsigned char **pp); (ctx)->options &= ~(op); while (0) #endif -#if defined(__cplusplus) -} -#endif - - #endif /* _OSSL_OPENSSL_MISSING_H_ */ diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 8e6f2ce7e3..fdeca83705 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"); @@ -242,8 +238,4 @@ void ossl_debug(const char *, ...); void Init_openssl(void); -#if defined(__cplusplus) -} -#endif - #endif /* _OSSL_H_ */ |