From 8398809e7d682af5dd6bbed7db0cce0f74190040 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 10 Nov 2003 21:28:02 +0000 Subject: [PATCH] * miscfuncs.cc (low_priority_sleep): Make a "C" function. * winsup.h (low_priority_sleep): Revert previous change to declaration. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/miscfuncs.cc | 2 +- winsup/cygwin/winsup.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b5c074b58..7a9587714 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-11-10 Christopher Faylor + + * miscfuncs.cc (low_priority_sleep): Make a "C" function. + * winsup.h (low_priority_sleep): Revert previous change to declaration. + 2003-11-10 Corinna Vinschen * winsup.h (low_priority_sleep): Fix declaration to avoid linker diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index be7c8a30e..fc727936d 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -302,7 +302,7 @@ sys_mbstowcs (WCHAR *tgt, const char *src, int len) return MultiByteToWideChar (get_cp (), 0, src, -1, tgt, len); } -int __stdcall +extern "C" int __stdcall low_priority_sleep (DWORD secs) { HANDLE thisthread = GetCurrentThread (); diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 1707d5fd2..adaa6a33b 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -279,7 +279,7 @@ int symlink_worker (const char *, const char *, bool, bool) class path_conv; int access_worker (path_conv&, int) __attribute__ ((regparm (2))); -extern int __stdcall low_priority_sleep (DWORD) __attribute__ ((regparm (1))); +extern "C" int __stdcall low_priority_sleep (DWORD) __attribute__ ((regparm (1))); #define SLEEP_0_STAY_LOW INFINITE size_t getshmlba (void);