From bb575208bd8b12926b413774503df5fa965d7b69 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Jul 2012 17:31:58 +0000 Subject: intern.h: fix declaration * include/ruby/intern.h (rb_thread_blocking_region): fix declarations prototypes without arguments in C++ have different meanings than C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index dae7ca3d68..6895850f60 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -824,9 +824,8 @@ typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); void rb_thread_check_ints(void); int rb_thread_interrupted(VALUE thval); -VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, - rb_unblock_function_t *ubf, void *data2); -DEPRECATED(VALUE rb_thread_blocking_region()); +DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, + rb_unblock_function_t *ubf, void *data2)); #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) VALUE rb_mutex_new(void); -- cgit v1.2.3