From 5638529195398ef10d3e02053cbde44a5c2ff2da Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 Jul 2007 01:19:18 +0000 Subject: * thread_pthread.ci (thread_start_func_2): not use a directive inside a macro argument. [ruby-talk:258763] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 9174b533e..72039827f 100644 --- a/thread.c +++ b/thread.c @@ -137,6 +137,12 @@ rb_thread_s_debug_set(VALUE self, VALUE val) #define thread_debug if(0)printf #endif +#ifndef __ia64 +#define thread_start_func_2(th, st, rst) thread_start_func_2(th, st) +#endif +NOINLINE(static int thread_start_func_2(rb_thread_t *th, VALUE *stack_start, + VALUE *register_stack_start)); + #if defined(_WIN32) #include "thread_win32.ci" @@ -272,11 +278,7 @@ thread_cleanup_func(void *th_ptr) } static int -thread_start_func_2(rb_thread_t *th, VALUE *stack_start -#ifdef __ia64 - , VALUE *register_stack_start -#endif -) +thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_start) { int state; VALUE args = th->first_args; -- cgit