From 0a39c5748964df1bc9d742d25a97965d09cd0601 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Fri, 25 Jul 2003 20:40:57 +0000 Subject: [PATCH] * ext/openssl/ossl.h: fix comment. * ext/openssl/ossl.c (ossl_debug): should enable if no va-args macro supplied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ ext/openssl/ossl.c | 5 +++-- ext/openssl/ossl.h | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc0c81bf9c..5c53a647b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Jul 26 05:31:09 2003 GOTOU Yuuzou + + * ext/openssl/ossl.h: fix comment. + + * ext/openssl/ossl.c (ossl_debug): should enable if no va-args + macro supplied. + Sat Jul 26 04:04:36 2003 GOTOU Yuuzou * ext/openssl/extconf.rb: refine va-args macro detection. diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 559f8806af..9e476cb5af 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -431,8 +431,9 @@ ossl_raise(VALUE exc, const char *fmt, ...) */ VALUE dOSSL; -#if defined(NT) || defined(_WIN32) -void ossl_debug(const char *fmt, ...) +#if !defined(HAVE_VA_ARGS_MACRO) +void +ossl_debug(const char *fmt, ...) { va_list args; diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index d334ad7441..72b183986e 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -166,7 +166,7 @@ void ossl_debug(const char *, ...); #define OSSL_Debug ossl_debug #define OSSL_Warning rb_warning #define OSSL_Warn rb_warn -#endif /* __GNUC__ || _STDC_VERSION__ >= 199901L */ +#endif /* * Include all parts