diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-05 03:00:09 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-05 03:00:09 +0000 |
commit | b9d553af32e1e0dbabd112d31e4b14c89f09f5d2 (patch) | |
tree | d102f0abf7c4b0f2bf4fc6ee6afff2a26cb08090 | |
parent | 9178281aea90b278ee703d1ed1aafa8e89738c41 (diff) |
* ext/socket/socket.c: use _() macro instead of __P(), because the
former is provided by ruby's defines.h but the latter is offered
by some systems only by chance. this fixes build failure with VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/socket/socket.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Thu Aug 5 11:55:17 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/socket/socket.c: use _() macro instead of __P(), because the + former is provided by ruby's defines.h but the latter is offered + by some systems only by chance. this fixes build failure with VC. + Fri Jul 30 17:51:20 2010 NAKAMURA Usaku <usa@ruby-lang.org> * ext/-test-/add_suffix/bug.c: typo. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index fb0160375b..fe3113d517 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -234,7 +234,7 @@ ruby_getnameinfo__aix(sa, salen, host, hostlen, serv, servlen, flags) #endif #endif -static int str_isnumber __P((const char *)); +static int str_isnumber _((const char *)); #if defined(__APPLE__) /* fix [ruby-core:29427] */ |