* miscfuncs.cc (low_priority_sleep): Make a "C" function.

* winsup.h (low_priority_sleep): Revert previous change to declaration.
This commit is contained in:
Christopher Faylor 2003-11-10 21:28:02 +00:00
parent 07ff303782
commit 8398809e7d
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-10 Christopher Faylor <cgf@redhat.com>
* miscfuncs.cc (low_priority_sleep): Make a "C" function.
* winsup.h (low_priority_sleep): Revert previous change to declaration.
2003-11-10 Corinna Vinschen <corinna@vinschen.de> 2003-11-10 Corinna Vinschen <corinna@vinschen.de>
* winsup.h (low_priority_sleep): Fix declaration to avoid linker * winsup.h (low_priority_sleep): Fix declaration to avoid linker

View File

@ -302,7 +302,7 @@ sys_mbstowcs (WCHAR *tgt, const char *src, int len)
return MultiByteToWideChar (get_cp (), 0, src, -1, tgt, len); return MultiByteToWideChar (get_cp (), 0, src, -1, tgt, len);
} }
int __stdcall extern "C" int __stdcall
low_priority_sleep (DWORD secs) low_priority_sleep (DWORD secs)
{ {
HANDLE thisthread = GetCurrentThread (); HANDLE thisthread = GetCurrentThread ();

View File

@ -279,7 +279,7 @@ int symlink_worker (const char *, const char *, bool, bool)
class path_conv; class path_conv;
int access_worker (path_conv&, int) __attribute__ ((regparm (2))); 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 #define SLEEP_0_STAY_LOW INFINITE
size_t getshmlba (void); size_t getshmlba (void);