mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af1460d670
commit
08c07a215d
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Mar 10 03:00:43 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_ssl.c: parenthesize macro arguments.
|
||||
|
||||
Wed Mar 9 23:51:26 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* test/ruby/test_io_m17n.rb (test_io_new_enc): "sjis" is now an alias
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
# include <unistd.h> /* for read(), and write() */
|
||||
#endif
|
||||
|
||||
#define numberof(ary) (int)(sizeof(ary)/sizeof(ary[0]))
|
||||
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
|
||||
|
||||
#ifdef _WIN32
|
||||
# define TO_SOCKET(s) _get_osfhandle(s)
|
||||
#else
|
||||
# define TO_SOCKET(s) s
|
||||
# define TO_SOCKET(s) (s)
|
||||
#endif
|
||||
|
||||
VALUE mSSL;
|
||||
|
@ -1064,9 +1064,9 @@ ossl_ssl_setup(VALUE self)
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#define ssl_get_error(ssl, ret) (errno = rb_w32_map_errno(WSAGetLastError()), SSL_get_error(ssl, ret))
|
||||
#define ssl_get_error(ssl, ret) (errno = rb_w32_map_errno(WSAGetLastError()), SSL_get_error((ssl), (ret)))
|
||||
#else
|
||||
#define ssl_get_error(ssl, ret) SSL_get_error(ssl, ret)
|
||||
#define ssl_get_error(ssl, ret) SSL_get_error((ssl), (ret))
|
||||
#endif
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue