summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:12:26 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:12:26 (GMT)
commit444f08f6619a65c06a1add22cae361e21c6dc934 (patch)
tree8d72e86d2d94d4f066c082ab11028cc1f00fd744 /thread_win32.c
parent1ffdd828b32ecb81fd3fd8541df1edcb8c5673a8 (diff)
win32: for strict ANSI
* thread_win32.c (w32_thread_start_func, thread_start_func_1), (timer_thread_func): use __stdcall instead of _stdcall which is unavailable in strict ANSI mode. [ruby-core:55312] [Bug #8495] * win32/win32.c (gettimeofday): use __cdecl instead of _cdecl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 0128f63..86f3e3c 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -269,7 +269,7 @@ w32_resume_thread(HANDLE handle)
#ifdef HAVE__BEGINTHREADEX
#define start_thread (HANDLE)_beginthreadex
#define thread_errno errno
-typedef unsigned long (_stdcall *w32_thread_start_func)(void*);
+typedef unsigned long (__stdcall *w32_thread_start_func)(void*);
#else
#define start_thread CreateThread
#define thread_errno rb_w32_map_errno(GetLastError())
@@ -587,7 +587,7 @@ native_thread_destroy(rb_thread_t *th)
w32_close_handle(intr);
}
-static unsigned long _stdcall
+static unsigned long __stdcall
thread_start_func_1(void *th_ptr)
{
rb_thread_t *th = th_ptr;
@@ -695,7 +695,7 @@ ubf_handle(void *ptr)
static HANDLE timer_thread_id = 0;
static HANDLE timer_thread_lock;
-static unsigned long _stdcall
+static unsigned long __stdcall
timer_thread_func(void *dummy)
{
thread_debug("timer_thread\n");