Revert much of previous erroneous checkin. Add ChangeLog entry.

* pinfo.h: Correctly set __SIGOFFSET.
* path.cc (hash_path_name): Avoid calling library functions for simple copying
of characters.
* shortcut.c: Use WIN32_LEAN_AND_MEAN.
* smallprint.c: Ditto.
* environ.cc (getwinenv): Minor clarity fix.
* localtime.c: No need to include windows.h
* string.h: New file.
This commit is contained in:
Christopher Faylor
2001-05-04 21:02:15 +00:00
parent 17743fbc49
commit 63b61cd19f
12 changed files with 103 additions and 47 deletions

View File

@ -632,11 +632,11 @@ bool
sigthread::get_winapi_lock (int test)
{
if (test)
return !ilockexch (&winapi_lock, 1);
return !InterlockedExchange (&winapi_lock, 1);
/* Need to do a busy loop because we can't block or a potential SuspendThread
will hang. */
while (ilockexch (&winapi_lock, 1))
while (InterlockedExchange (&winapi_lock, 1))
Sleep (1);
return 1;
}
@ -645,7 +645,7 @@ void
sigthread::release_winapi_lock ()
{
/* Assumes that we have the lock. */
ilockexch (&winapi_lock, 0);
InterlockedExchange (&winapi_lock, 0);
}
static void __stdcall interrupt_setup (int sig, void *handler, DWORD retaddr,